Package com.volantis.mcs.wbsax

Examples of com.volantis.mcs.wbsax.StringReferenceFactory


        fac = configuration.getElementNameFactory();
        asf = configuration.getAttributeStartFactory();
       
        StringTable stringTable = new StringTable();
        StringFactory strings = new StringFactory(new Codec(charsetCode));
        StringReferenceFactory references =
                new StringReferenceFactory(stringTable, strings);
       
        context = new WBSAXProcessorContext(fac, asf, strings, references,
                        encoding, stringTable, configuration);
        context.setContentHandler(enumeratedWBSAXContentHandler);
View Full Code Here


        attrValues = new AttributeValueFactory();
        if (requiresStringTable()) {
            stringTable = new StringTable();
        }
        strings = new StringFactory(codec);
        references = new StringReferenceFactory(stringTable, strings);
        initialise();
    }
View Full Code Here

        strings = new StringFactory(codec);
    }

    protected DissectableDocumentBuilder createBuilder() throws Exception {
        StringTable stringTable = new StringTable();
        StringReferenceFactory references =
                new StringReferenceFactory(stringTable, strings);
       
        // Handler to parse WBSAX events into dissection WBDOM nodes.
        DissectionWBSAXParser parser =
                new DissectionWBSAXParser(wbdomFactory, conf);
        // SAX handler to consume SAX events, generating WBSAX events
View Full Code Here

       
        CharsetCode charset = new CharsetCode(0x6A, "UTF-8");
        Codec codec = new Codec(charset);
        StringTable stringTable = new StringTable();
        StringFactory strings = new StringFactory(codec);
        StringReferenceFactory references =
                new StringReferenceFactory(stringTable, strings);
       
        // SAX handler to consume SAX events, generating WBSAX events
        DissectionTestSAXConsumer consumer = new DissectionTestSAXConsumer(parser,
                elementNames, attrStarts, stringTable, codec, strings);
        // Wrapper for SAX->WBSAX layer to handle the dissection stuff.
View Full Code Here

     * StringReferenceFactory
     */
    private void initialiseDocument(StringFactory strings) {       
        this.strings = strings;
        outputStringTable = new StringTable();
        references = new StringReferenceFactory(outputStringTable, strings);
        resolver = new CopyReferenceResolver(references);
        insertJSessionId();
    }
View Full Code Here

     *
     * @param document the document to wrap.
     */
    public WBDOMDissectableDocument(WBDOMDocument document) {
        this.document = document;
        this.inputReferences = new StringReferenceFactory(
                document.getStringTable(), document.getStringFactory());
    }
View Full Code Here

        // Create the shared context that all the objects which participate
        // in serialising the MCSDOM use.
        Codec codec = new Codec(charsetCode);
        StringTable stringTable = new StringTable();
        StringFactory strings = new StringFactory(codec);
        StringReferenceFactory references =
            new StringReferenceFactory(stringTable, strings);
        WBSAXProcessorContext processorContext =
            new WBSAXProcessorContext(
                wmlConfiguration.getElementNameFactory(),
                wmlConfiguration.getAttributeStartFactory(), strings,
                references, charsetEncoding, stringTable,
View Full Code Here

        ReferenceResolver resolver;
        StringTable outputStringTable = null;
        StringTable inputStringTable = document.getStringTable();
        if (inputStringTable != null && inputStringTable.size() > 0) {
            outputStringTable = new StringTable();
            StringReferenceFactory references  = new StringReferenceFactory(
                    outputStringTable, document.getStringFactory());
            resolver = new CopyReferenceResolver(references);           
        } else {
            resolver = new NullReferenceResolver();
        }
View Full Code Here

        WBDOMDissectableDocument ddocument = (WBDOMDissectableDocument) document;
        WBDOMDocument wbdomDocument = ddocument.getDocument();
       
        strings = wbdomDocument.getStringFactory();
        stringTable = new StringTable();
        references = new StringReferenceFactory(
                stringTable, strings);
        resolver = new CopyReferenceResolver(references);
        elementNameSerialiser = new WBSAXElementNameSerialiser(handler,
                resolver);
        attributeNameSerialiser = new WBSAXAttributeNameSerialiser(handler,
View Full Code Here

TOP

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

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.