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.Broken output stream.Always throws anIOException
from allWriter
methods.Implements a ThreadSafe version ofAbstractByteArrayOutputStream
using instance synchronization.OutputStream which breaks larger output blocks into chunks.Builds a newUnsynchronizedByteArrayOutputStream
instance.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
instance.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
instance.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
instance.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.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 when a specified number of bytes of data have been written to it.Builds a newUncheckedFilterOutputStream
instance.Builds a newUncheckedFilterWriter
instance.Implements a version ofAbstractByteArrayOutputStream
without any concurrent thread safety.Builds a newUnsynchronizedByteArrayOutputStream
instance.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
instance.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
instance.