Package org.apache.commons.io.output
package org.apache.commons.io.output
Provides implementations of output classes, such as
OutputStream
and
Writer
.-
ClassDescriptionThis is the base class for implementing an output stream in which the data is written into a byte array.Constructor for an InputStream subclass.AppendableOutputStream<T extends Appendable>OutputStream implementation that writes the data to an
Appendable
Object.AppendableWriter<T extends Appendable>Writer implementation that writes the data to anAppendable
Object.Always throws an exception from allOutputStream
methods whereIOException
is declared.Always throws an exception from allWriter
methods whereIOException
is declared.Implements a ThreadSafe version ofAbstractByteArrayOutputStream
using instance synchronization.OutputStream which breaks larger output blocks into chunks.Builds a newUnsynchronizedByteArrayOutputStream
.Writer which breaks larger output blocks into chunks.Throws an IOException on all attempts to write to the stream.Throws an IOException on all attempts to write withClosedWriter.close()
implemented as a noop.Proxy stream that prevents the underlying output stream from being closed.Proxy writer that prevents the underlying writer from being closed.A decorating output stream that counts the number of bytes that have passed through the stream so far.An output stream which will retain data in memory until a specified threshold is reached, and only then commit it to disk.Builds a newDeferredFileOutputStream
.Forwards data to a stream that has been associated with this thread.Writer of files that allows the encoding to be set.Builds a newFileWriterWithEncoding
.Abstract class for writing filtered character streams to aCollection
of writers.FileWriter that will create and honor lock files to allow simple cross thread file lock handling.Builds a newLockableFileWriter
.Appends all data to the famous /dev/null.Never writes data.Never prints data.Never writes data.A Proxy stream collection which acts as expected, that is it passes the method calls on to the proxied streams and doesn't change which methods are being called.A Proxy stream which acts as expected, that is it passes the method calls on to the proxied stream and doesn't change which methods are being called.A Proxy stream which acts as expected, that is it passes the method calls on to the proxied stream and doesn't change which methods are being called.Simple alternative to JDKPipedOutputStream
; queue input stream provides what's written in queue output stream.AnOutputStream
that writes to aRandomAccessFile
.Builds a newRandomAccessFileOutputStream
.Writer
implementation that outputs to aStringBuilder
.An output stream decorator that tags potential exceptions so that the stream that caused the exception can easily be identified.A writer decorator that tags potential exceptions so that the reader that caused the exception can easily be identified.Classic splitter ofOutputStream
.Classic splitter ofWriter
.An output stream which triggers an event on the first write that causes the total number of bytes written to the stream to exceed a configured threshold, and every subsequent write.Builds a newUncheckedFilterOutputStream
.Builds a newUncheckedFilterWriter
.Implements a version ofAbstractByteArrayOutputStream
without any concurrent thread safety.Builds a newUnsynchronizedByteArrayOutputStream
.OutputStream
implementation that transforms a byte stream to a character stream using a specified charset encoding and writes the resulting stream to aWriter
.Builds a newWriterOutputStream
.Character stream that handles all the necessary work to figure out the charset encoding of the XML document written to the stream.Builds a newXmlStreamWriter
.