Package org.apache.cocoon.stax.stress.src

Examples of org.apache.cocoon.stax.stress.src.GeneratingStarter


     */
    private void doTest(int count) throws Exception {
        ByteArrayOutputStream out = new ByteArrayOutputStream();

        Pipeline<StAXPipelineComponent> pipe = new NonCachingPipeline<StAXPipelineComponent>();
        pipe.addComponent(new GeneratingStarter("root", "element", count));
        pipe.addComponent(new XMLSerializer());
        pipe.setup(out);
        pipe.execute();

        String created = new String(out.toByteArray());
View Full Code Here


     *                itself.
     */
    @Test
    public void testHugeInSmallOut() throws Exception {
        Pipeline<StAXPipelineComponent> pipe = new NonCachingPipeline<StAXPipelineComponent>();
        pipe.addComponent(new GeneratingStarter("root", "element", this.TEST_SIZE));
        pipe.addComponent(new OmitElementTransformer("element", new ArrayList<Attribute>()));
        pipe.addComponent(new XMLSerializer());

        ByteArrayOutputStream out = new ByteArrayOutputStream();
        pipe.setup(out);
View Full Code Here

TOP

Related Classes of org.apache.cocoon.stax.stress.src.GeneratingStarter

Copyright © 2018 www.massapicom. 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.