Package org.bzdev.io

Class AppendableWriter

java.lang.Object
java.io.Writer
org.bzdev.io.AppendableWriter
All Implemented Interfaces:
Closeable, Flushable, Appendable, AutoCloseable

public class AppendableWriter extends Writer
Writer that writes to an Appendable. This class allows a Writer to be used to add text to an Appendable. For example new PrintWriter(new AppendableWriter(appendable) creates a PrintWriter that can write formatted text to appendable (whose class is, of course, Appendable). The implementation is thread-safe.