Package org.apache.commons.io.output
Provides implementations of output classes, such as
OutputStream
and
Writer
.-
Interface Summary Interface Description UncheckedAppendable AnAppendable
that throwsUncheckedIOException
instead ofIOException
. -
Class Summary Class Description AbstractByteArrayOutputStream This is the base class for implementing an output stream in which the data is written into a byte array.AppendableOutputStream<T extends java.lang.Appendable> OutputStream implementation that writes the data to anAppendable
Object.AppendableWriter<T extends java.lang.Appendable> Writer implementation that writes the data to anAppendable
Object.BrokenOutputStream Broken output stream.BrokenWriter Always throws anIOException
from allWriter
methods.ByteArrayOutputStream Implements a ThreadSafe version ofAbstractByteArrayOutputStream
using instance synchronization.ChunkedOutputStream OutputStream which breaks larger output blocks into chunks.ChunkedOutputStream.Builder Builds a newUnsynchronizedByteArrayOutputStream
instance.ChunkedWriter Writer which breaks larger output blocks into chunks.ClosedOutputStream Throws an IOException on all attempts to write to the stream.ClosedWriter Throws an IOException on all attempts to write withClosedWriter.close()
implemented as a noop.CloseShieldOutputStream Proxy stream that prevents the underlying output stream from being closed.CloseShieldWriter Proxy writer that prevents the underlying writer from being closed.CountingOutputStream A decorating output stream that counts the number of bytes that have passed through the stream so far.DeferredFileOutputStream An output stream which will retain data in memory until a specified threshold is reached, and only then commit it to disk.DeferredFileOutputStream.Builder Builds a newDeferredFileOutputStream
instance.DemuxOutputStream Forwards data to a stream that has been associated with this thread.FileWriterWithEncoding Writer of files that allows the encoding to be set.FileWriterWithEncoding.Builder Builds a newFileWriterWithEncoding
instance.FilterCollectionWriter Abstract class for writing filtered character streams to aCollection
of writers.LockableFileWriter FileWriter that will create and honor lock files to allow simple cross thread file lock handling.LockableFileWriter.Builder Builds a newLockableFileWriter
instance.NullAppendable Appends all data to the famous /dev/null.NullOutputStream Never writes data.NullPrintStream Never prints data.NullWriter Never writes data.ProxyCollectionWriter 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.ProxyOutputStream 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.ProxyWriter 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.QueueOutputStream Simple alternative to JDKPipedOutputStream
; queue input stream provides what's written in queue output stream.StringBuilderWriter Writer
implementation that outputs to aStringBuilder
.TaggedOutputStream An output stream decorator that tags potential exceptions so that the stream that caused the exception can easily be identified.TaggedWriter A writer decorator that tags potential exceptions so that the reader that caused the exception can easily be identified.TeeOutputStream Classic splitter ofOutputStream
.TeeWriter Classic splitter ofWriter
.ThresholdingOutputStream An output stream which triggers an event when a specified number of bytes of data have been written to it.UncheckedFilterOutputStream AFilterOutputStream
that throwsUncheckedIOException
instead ofUncheckedIOException
.UncheckedFilterOutputStream.Builder Builds a newUncheckedFilterOutputStream
instance.UncheckedFilterWriter AFilterWriter
that throwsUncheckedIOException
instead ofIOException
.UncheckedFilterWriter.Builder Builds a newUncheckedFilterWriter
instance.UnsynchronizedByteArrayOutputStream Implements a version ofAbstractByteArrayOutputStream
without any concurrent thread safety.UnsynchronizedByteArrayOutputStream.Builder Builds a newUnsynchronizedByteArrayOutputStream
instance.WriterOutputStream OutputStream
implementation that transforms a byte stream to a character stream using a specified charset encoding and writes the resulting stream to aWriter
.WriterOutputStream.Builder Builds a newWriterOutputStream
instance.XmlStreamWriter Character stream that handles all the necessary work to figure out the charset encoding of the XML document written to the stream.XmlStreamWriter.Builder Builds a newXmlStreamWriter
instance.