Package com.volantis.mcs.dissection.dom.impl

Examples of com.volantis.mcs.dissection.dom.impl.TSimpleString


        contents.add(string);
        return index;
    }

    public int addEntry(String string) {
        return addEntry(new TSimpleString(string));
    }
View Full Code Here


    public void addCost(TStringContext context,
                        Accumulator accumulator)
        throws DissectionException {

        TStringTable table = context.getStringTable();
        TSimpleString string = table.getEntry(index);
        String contents = string.getContents();

        // Calculate the cost of the entity declaration.
        if (entityDeclarationCost == -1) {
            StringWriter writer = new StringWriter();
            PrintWriter printWriter = new PrintWriter(writer);
View Full Code Here

    public void debugAppend(TStringContext context,
                            StringBuffer buffer) {

        TStringTable table = context.getStringTable();
        TSimpleString string = table.getEntry(index);
        buffer.append("[");
        string.debugAppend(context, buffer);
        buffer.append("]");
    }
View Full Code Here

    public void debugWrite(TStringContext context, Writer writer)
        throws DissectionException {
        try {
            TStringTable table = context.getStringTable();
            TSimpleString string = table.getEntry(index);
            writer.write("[");
            writer.write(Integer.toString(index));
            writer.write(":");
            string.debugWrite(context, writer);
            writer.write("]");
        } catch (IOException ioe) {
            throw new DissectionException(ioe);
        }
    }
View Full Code Here

        if (contents instanceof TCompoundString) {
            ((TCompoundString) contents).addString(string);
        } else if (contents instanceof TSimpleString
            && string instanceof TSimpleString) {

            TSimpleString simpleContents = (TSimpleString) contents;

            String s1 = simpleContents.getContents();
            String s2 = ((TSimpleString) string).getContents();

            simpleContents.setContents(s1 + s2);
        } else {
            TCompoundString compound = new TCompoundString();
            compound.addString(contents);
            compound.addString(string);
            contents = compound;
View Full Code Here

TOP

Related Classes of com.volantis.mcs.dissection.dom.impl.TSimpleString

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.