Package com.volantis.synergetics.cornerstone.utilities

Examples of com.volantis.synergetics.cornerstone.utilities.ReusableStringBuffer


    /**
     * Create a new ReusableStringBuffer for the pool.
     */
    private ReusableStringBuffer createObject() {
        return new ReusableStringBuffer(40);
    }
View Full Code Here


    /**
     * Release all items in the pool.
     */
    public void release() {
        for (int i = 0; i < next; i++) {
            ReusableStringBuffer rsb = (ReusableStringBuffer) pool.get(i);
            rsb.setLength(0);
        }
        next = 0;
    }
View Full Code Here

    /**
     * Create a new string writer, using the default initial string-buffer
     * size.
     */
    public ReusableStringWriter() {
  buffer = new ReusableStringBuffer();
    }
View Full Code Here

        public MarinerRequestContext getRequestContext() {
            return requestContext;
        }

        public ReusableStringBuffer allocateRSB() {
            return new ReusableStringBuffer();
        }
View Full Code Here


    public TextImpl(DOMFactory factory) {
        super(factory);

        contents = new ReusableStringBuffer();
    }
View Full Code Here

    /**
     * Create a new <code>StringOutputBuffer</code>.
     */
    public StringOutputBuffer() {
        this(new ReusableStringBuffer(40));
    }
View Full Code Here

     *
     * @param initialSize the initial size.
     */
    private ReusableStringBuffer createContents(int initialSize) {
        if (contents == null) {
            contents = new ReusableStringBuffer(initialSize);
        }
        return contents;
    }
View Full Code Here

    // Javadoc inherited.
    public void clearContents() {
        // this defeats the purpose of a reusable string buffer but delete does
        // not currently work on the reusable string buffer. todo: fix this.
        contents = new ReusableStringBuffer();
        encoded = false;
    }
View Full Code Here

            throw new UndeclaredThrowableException(e);
        }
    }

    public ReusableStringBuffer allocateRSB() {
        return new ReusableStringBuffer();
    }
View Full Code Here

            StyleSheetRenderer renderer,
            RuntimeRendererProtocolConfiguration
                    runtimeRendererProtocolConfiguration,
            CSSVersion cssVersion) {
        super(writer, renderer,
                new ReusableStringBuffer(), cssVersion);

        this.runtimeRendererProtocolConfiguration =
                runtimeRendererProtocolConfiguration;
    }
View Full Code Here

TOP

Related Classes of com.volantis.synergetics.cornerstone.utilities.ReusableStringBuffer

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.