org.apache.commons.io.output |
This package provides implementations of output classes, such as
OutputStream and Writer .
|
Java Source File Name | Type | Comment |
ByteArrayOutputStream.java | Class | This class implements an output stream in which the data is
written into a byte array. |
ByteArrayOutputStreamTestCase.java | Class | Basic unit tests for the alternative ByteArrayOutputStream implementation. |
CountingOutputStream.java | Class | A decorating output stream that counts the number of bytes that have passed
through the stream so far. |
CountingOutputStreamTest.java | Class | |
DeferredFileOutputStream.java | Class | An output stream which will retain data in memory until a specified
threshold is reached, and only then commit it to disk. |
DeferredFileOutputStreamTest.java | Class | Unit tests for the DeferredFileOutputStream class. |
DemuxOutputStream.java | Class | Data written to this stream is forwarded to a stream that has been associated
with this thread. |
LockableFileWriter.java | Class | FileWriter that will create and honor lock files to allow simple
cross thread file lock handling.
This class provides a simple alternative to FileWriter
that will use a lock file to prevent duplicate writes.
By default, the file will be overwritten, but this may be changed to append.
The lock directory may be specified, but defaults to the system property
java.io.tmpdir .
The encoding may also be specified, and defaults to the platform default.
author: Scott Sanders author: Michael Salmon author: Jon S. |
LockableFileWriterTest.java | Class | Tests that files really lock, although no writing is done as
the locking is tested only on construction. |
NullOutputStream.java | Class | This OutputStream writes all data to the famous /dev/null. |
NullOutputStreamTest.java | Class | Really not a lot to do here, but checking that no
Exceptions are thrown. |
NullWriter.java | Class | This
Writer writes all data to the famous /dev/null. |
NullWriterTest.java | Class | Really not a lot to do here, but checking that no
Exceptions are thrown. |
PackageTestSuite.java | Class | A basic test suite that tests all the IO output package. |
ProxyOutputStream.java | Class | 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.java | Class | 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. |
TeeOutputStream.java | Class | Classic splitter of OutputStream. |
TeeOutputStreamTest.java | Class | |
ThresholdingOutputStream.java | Class | An output stream which triggers an event when a specified number of bytes of
data have been written to it. |