Class WriteThroughWriter

java.lang.Object
java.io.Writer
org.eclipse.jetty.io.WriteThroughWriter
All Implemented Interfaces:
Closeable, Flushable, Appendable, AutoCloseable

public abstract class WriteThroughWriter extends Writer

An alternate to OutputStreamWriter that supports several optimized implementation for well known Charsets, specifically StandardCharsets.UTF_8 and StandardCharsets.ISO_8859_1.

The implementations of this class will never buffer characters or bytes beyond a call to the write(char[], int, int) method, thus written characters will always be passed as bytes to the passed OutputStream

.