Uses of Package
org.apache.commons.io.input
Package
Description
Provides classes for working with streams, readers, writers and files.
Provides implementations of input classes, such as
InputStream
and Reader
.Provides implementations of output classes, such as
OutputStream
and
Writer
.-
ClassDescriptionSimple alternative to JDK
PipedInputStream
; queue input stream provides what's written in queue output stream. -
ClassDescriptionA filter reader that filters out characters where subclasses decide which characters to filter out.Abstracts some InputStream operations for implementations in this package.Proxy stream that closes and discards the underlying stream as soon as the end of input has been reached or when the stream is explicitly closed.Builds a new
AutoCloseInputStream
instance.This class is used to wrap a stream that includes an encodedByteOrderMark
as its first bytes.Builds a newBOMInputStream
.Reads bytes up to a maximum count and stops once reached.Builds a newBoundedInputStream
.Always throws an exception from allInputStream
methods whereIOException
is declared.Always throws an exception from allReader
methods whereIOException
is declared.InputStream
implementation which uses direct buffer to read a file to avoid extra copy of data between Java and native memory which happens when usingBufferedInputStream
.Builds a newBufferedFileChannelInputStream
.Implements anInputStream
to read bytes from String, StringBuffer, StringBuilder or CharBuffer, encoded using the specified Charset.Builds a newCharSequenceInputStream
.Automatically verifies aChecksum
value once the stream is exhausted or the count threshold is reached.Builds a newChecksumInputStream
.AnInputStream
that repeats provided bytes for given target byte count.Always returnsIOUtils.EOF
to all attempts to read something from an input stream.Always returnsIOUtils.EOF
to all attempts to read something from it.Proxy stream that prevents the underlying input stream from being closed.Proxy reader that prevents the underlying reader from being closed.Deprecated.AnInputStream
that utilizes memory mapped files to improve performance.Builds a newMemoryMappedFileInputStream
.Deprecated.Deprecated.Builds a newMessageDigestCalculatingInputStream
.This class is an example for using anObservableInputStream
.Builds newMessageDigestInputStream
.A light weightInputStream
that emulates a stream of a specified size.A functional, light weightReader
that emulates a reader of a specified size.TheObservableInputStream
allows, that an InputStream may be consumed by other receivers, apart from the thread, which is reading it.For subclassing builders fromBoundedInputStream
subclassses.Abstracts observer callback forObservableInputStream
s.A proxy stream which acts as aFilterInputStream
, by passing all method calls on to the proxied stream, not changing which methods are called.Abstracts builder properties for subclasses.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 JDKPipedInputStream
; queue input stream provides what's written in queue output stream.Builds a newQueueInputStream
.Streams data from aRandomAccessFile
starting at its current position.Builds a newRandomAccessFileInputStream
.ImplementsInputStream
to asynchronously read ahead from an underlying input stream when a specified amount of data has been read from the current buffer.Builds a newReadAheadInputStream
.InputStream
implementation that reads a character stream from aReader
and transforms it to a byte stream using a specified charset encoding.Builds a newReaderInputStream
.Reads lines in a file reversely (similar to a BufferedReader, but starting at the last line).Builds a newReversedLinesFileReader
.Simple implementation of the UNIX "tail -f" functionality.Builds a newTailer
.Bridges access to a resource for random access, normally a file.A tailable resource like a file.Listener for events from aTailer
.Provides bandwidth throttling on a specified InputStream.Builds a newThrottledInputStream
.Builds a newUncheckedBufferedReader
.Builds a newUncheckedFilterInputStream
.Builds a newUncheckedFilterReader
.An unsynchronized version ofBufferedInputStream
, not thread-safe.This is an alternative toByteArrayInputStream
which removes the synchronization overhead for non-concurrent access; as such this class is not thread-safe.Builds a newUnsynchronizedByteArrayInputStream
.An unsynchronized version ofFilterInputStream
, not thread-safe.Builds a newUnsynchronizedFilterInputStream
.AReader
without any of the superclass' synchronization.Character stream that handles all the necessary Voodoo to figure out the charset encoding of the XML document within the stream.Builds a newXmlStreamWriter
. -
ClassDescriptionSimple alternative to JDK
PipedInputStream
; queue input stream provides what's written in queue output stream.
BoundedInputStream
(unbounded by default).