Package com.volantis.mcs.wbsax

Examples of com.volantis.mcs.wbsax.WBSAXDisassembler


        // Create either a binary or text producer.
        WBSAXContentHandler producer = createProducer(output);

        if (logger.isDebugEnabled()) {
            // Wrap it with a debug filter.
            producer = new WBSAXDisassembler(producer);
        }
       
        // Create content handler used by the dissector to serialise with.
        WBDOMDissectedContentHandler dissectedContentHandler =
                new WBDOMDissectedContentHandler(producer, conf, urlListener);
View Full Code Here


            CharacterEncoder pce = new DebugCharacterEncoder();
            EncodingWriter enc = new EncodingWriter(textBuffer, pce);
            WBSAXContentHandler textProducer = new WMLProducer(textBuffer, enc);

            if (logger.isDebugEnabled()) {
                textProducer = new WBSAXDisassembler(textProducer);
            }
           
            // Create a producer for WBXML.
            ByteArrayOutputStream binaryBuffer = new ByteArrayOutputStream();
            WBXMLProducer binaryProducer = new WBXMLProducer(binaryBuffer);
View Full Code Here

            StringWriter out = null;
            try {
                if (logger.isDebugEnabled()) {
                    out = new StringWriter();
                    handler = new WBSAXDisassembler(producer, out);
                } else {
                    handler = producer;
                }

                processorContext.setContentHandler(handler);
View Full Code Here

                                                       wmlConfiguration);
        StringWriter out = null;
        try {
            if (logger.isDebugEnabled()) {
                out = new StringWriter();
                handler = new WBSAXDisassembler(parser, out);
            } else {
                handler = parser;
            }

            // Plugin optimiser
            optimiser = new URLOptimiser(handler);
            optimiser.setPageContext(getMarinerPageContext());
            if (logger.isDebugEnabled()) {
                out = new StringWriter();
                filter = new WBSAXDisassembler(optimiser, out);
            } else {
                filter = optimiser;
            }

            processorContext.setContentHandler(filter);
            wbsaxOutputter.output(document);
        } finally {
            if (logger.isDebugEnabled()) {
                out.flush();
                logger.debug(out);
            }
        }

        try {
            if (logger.isDebugEnabled()) {
                out = new StringWriter();
                handler = new WBSAXDisassembler(producer, out);
            } else {
                handler = producer;
            }
           
            super.writeViaDissection(
View Full Code Here

TOP

Related Classes of com.volantis.mcs.wbsax.WBSAXDisassembler

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.