Examples of XmlGenerator


Examples of org.apache.cocoon.sax.component.XMLGenerator

     */
    public LinkedSAXPipelineComponentBuilder setByteArrayGenerator(byte[] bytes) {
        if (bytes == null) {
            throw new IllegalArgumentException("Parameter 'bytes' must be not null");
        }
        return this.setStarter(new XMLGenerator(bytes));
    }
View Full Code Here

Examples of org.apache.cocoon.sax.component.XMLGenerator

            throw new IllegalArgumentException("Parameter 'bytes' must be not null");
        }
        if (encoding == null) {
            throw new IllegalArgumentException("Parameter 'encoding' must be not null");
        }
        return this.setStarter(new XMLGenerator(bytes, encoding));
    }
View Full Code Here

Examples of org.apache.cocoon.sax.component.XMLGenerator

     */
    public LinkedSAXPipelineComponentBuilder setFileGenerator(File file) {
        if (file == null) {
            throw new IllegalArgumentException("Parameter 'file' must be not null");
        }
        return this.setStarter(new XMLGenerator(file));
    }
View Full Code Here

Examples of org.apache.cocoon.sax.component.XMLGenerator

     */
    public LinkedSAXPipelineComponentBuilder setInputStreamGenerator(InputStream inputStream) {
        if (inputStream == null) {
            throw new IllegalArgumentException("Parameter 'inputStream' must be not null");
        }
        return this.setStarter(new XMLGenerator(inputStream));
    }
View Full Code Here

Examples of org.apache.cocoon.sax.component.XMLGenerator

     */
    public LinkedSAXPipelineComponentBuilder setNodeGenerator(Node node) {
        if (node == null) {
            throw new IllegalArgumentException("Parameter 'node' must be not null");
        }
        return this.setStarter(new XMLGenerator(node));
    }
View Full Code Here

Examples of org.apache.cocoon.sax.component.XMLGenerator

     */
    public LinkedSAXPipelineComponentBuilder setSAXBufferGenerator(SAXBuffer saxBuffer) {
        if (saxBuffer == null) {
            throw new IllegalArgumentException("Parameter 'saxBuffer' must be not null");
        }
        return this.setStarter(new XMLGenerator(saxBuffer));
    }
View Full Code Here

Examples of org.apache.cocoon.sax.component.XMLGenerator

     */
    public LinkedSAXPipelineComponentBuilder setStringGenerator(String xmlString) {
        if (xmlString == null) {
            throw new IllegalArgumentException("Parameter 'xmlString' must be not null");
        }
        return this.setStarter(new XMLGenerator(xmlString));
    }
View Full Code Here

Examples of org.apache.cocoon.sax.component.XMLGenerator

     */
    public LinkedSAXPipelineComponentBuilder setURLGenerator(URL url) {
        if (url == null) {
            throw new IllegalArgumentException("Parameter 'url' must be not null");
        }
        return this.setStarter(new XMLGenerator(url));
    }
View Full Code Here

Examples of org.apache.cocoon.sax.component.XMLGenerator

    @Test
    public void testPipelineWithSolrConsumer() throws Exception {
        Pipeline<SAXPipelineComponent> pipeline = new NonCachingPipeline<SAXPipelineComponent>();

        pipeline.addComponent(new XMLGenerator(this.getClass().getResource("sample.xml")));
        pipeline.addComponent(new SolrConsumer(this.solr));
        pipeline.addComponent(new XMLSerializer());

        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        pipeline.setup(baos);
View Full Code Here

Examples of org.apache.cocoon.sax.component.XMLGenerator

public final class FopSerializerTestCase {

    @Test
    public void testPipelineWithFOPSerializer() throws Exception {
        Pipeline<SAXPipelineComponent> pipeline = new NonCachingPipeline<SAXPipelineComponent>();
        pipeline.addComponent(new XMLGenerator(this.getClass().getResource("page.xml")));
        pipeline.addComponent(new XSLTTransformer(this.getClass().getResource("page2fo.xsl")));
        pipeline.addComponent(new FopSerializer());

        File tmp = File.createTempFile("fop_test_case", ".pdf");
        FileOutputStream fos = new FileOutputStream(tmp);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.