Package com.volantis.mcs.wbsax

Examples of com.volantis.mcs.wbsax.StringFactory


                        "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,
                        encoding, stringTable, configuration);
View Full Code Here


    private AttributeStartCode accesskey;

    public void setUp() {
        codec = new Codec(new CharsetCode(1, "US-ASCII"));

        strings = new StringFactory(codec);
        s_x = strings.create("s x");
        s_y = strings.create("s y");

        elements = new ElementNameFactory();
        elements.registerElement(2, "e");
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);
       
View Full Code Here

    protected void setUp() throws Exception {
        super.setUp();
       
        charset = new CharsetCode(0x6A, "UTF-8");
        codec = new Codec(charset);
        strings = new StringFactory(codec);
    }
View Full Code Here

        attrStarts.registerAttributeStart(20, "attribute");
        attrStarts.registerAttributeStart(21, "href");

        charset = new CharsetCode(0x6A, "UTF-8");
        codec = new Codec(charset);
        strings = new StringFactory(codec);
    }
View Full Code Here

    protected void setUp() throws Exception {
        super.setUp();

        charset = new CharsetCode(0x6A, "UTF-8");
        codec = new Codec(charset);
        strings = new StringFactory(codec);
    }
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
        DissectionTestSAXConsumer consumer = new DissectionTestSAXConsumer(parser,
View Full Code Here

        SessionIdentifierSearcher searcher
             = SessionIdentifierSearcherFactory.create();           
        SessionIdentifierURL splitURL
             = searcher.getJSessionId(dopaque.getString());
           
        StringFactory strings = inputReferences.getStringFactory();
        // Add the part of the url before the jsessionid as an inline string
        WBSAXString prefix = strings.create(splitURL.getPrefix());
        visitString(prefix);
           
        // If present, add jsessionid to the string table  
        if (splitURL.hasJsessionid()) {
            StringReference jsessionid
                 = inputReferences.getReference(splitURL.getJsessionid());
            visitReference(jsessionid);
        }
           
        // If present, add the part of the url after the jsessionid as an
        // inline string
        if (splitURL.hasSuffix())  {
            WBSAXString suffix = strings.create(splitURL.getSuffix());
            visitString(suffix);                  
        }
    }
View Full Code Here

             = SessionIdentifierSearcherFactory.create();           
        SessionIdentifierURL splitURL
             = searcher.getJSessionId(dopaque.getString());
           
        // Add the part of the url before the jsessionid as an inline string
        StringFactory strings = outputReferences.getStringFactory();
        WBSAXString prefix = strings.create(splitURL.getPrefix());
        visitString(prefix);
           
        // If present, add jsessionid to the string table  
        if (splitURL.hasJsessionid()) {
            StringReference jsessionid
                 = outputReferences.createReference(splitURL.getJsessionid());
            visitReference(jsessionid);
        }
           
        // If present, add the part of the url after the jsessionid as an
        // inline string
        if (splitURL.hasSuffix())  {
            WBSAXString suffix = strings.create(splitURL.getSuffix());
            visitString(suffix);                  
        }
    }
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(),
View Full Code Here

TOP

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

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.