Package com.volantis.mcs.wbsax

Examples of com.volantis.mcs.wbsax.StringTable


        CharsetCode charsetCode = new CharsetCode(encoding.getMIBEnum(),
                        "iso-8859-1");
        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,
View Full Code Here


        // Start the document
        VersionCode versionCode = VersionCode.V1_1;
        PublicIdCode publicIdCode = PublicIdFactory.WML_1_1;
        Codec codec = new Codec(new CharsetCode(4, "iso-8859-1"));
        StringFactory strings = new StringFactory(codec);
        StringTable stringTable = new StringTable();
        optimiser.setPageContext(getPageContext());
        optimiser.startDocument(versionCode, publicIdCode, codec, stringTable,
                strings);
       
        // Send a href event to optimiser
View Full Code Here

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

        codec = new Codec(charset);
        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 =
View Full Code Here

        SerialisationURLListener urlListener = new TestURLListener();
       
        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
View Full Code Here

     * Private helper to initialise the ReferenceResolver, StringTable and
     * 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

        }

        // 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(
View Full Code Here

       
        // Set up for the serialisation.
        // This involves setting up for the creation of an output string table
        // if there was an input string table.
        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

            SharedContentUsages usages) throws DissectionException {
        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);
View Full Code Here

TOP

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

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.