Class StringBuilderWriter

  • All Implemented Interfaces:
    Closeable, Flushable, Appendable, AutoCloseable

    public class StringBuilderWriter
    extends Writer
    Writer implementation that outputs to a StringBuilder.

    NOTE: This implementation, as an alternative to java.io.StringWriter, provides an un-synchronized (i.e. for use in a single thread) implementation for better performance. For safe usage with multiple Threads then java.io.StringWriter should be used.

    Since:
    2.0
    Version:
    $Id: StringBuilderWriter.java 1415850 2012-11-30 20:51:39Z ggregory $