Package org.apache.commons.io.input
Provides implementations of input classes, such as 
InputStream and Reader.- 
Interface Summary Interface Description Tailer.RandomAccessResourceBridge Bridges access to a resource for random access, normally a file.Tailer.Tailable A tailable resource like a file.TailerListener Listener for events from aTailer. - 
Class Summary Class Description AbstractCharacterFilterReader A filter reader that filters out characters where subclasses decide which characters to filter out.AutoCloseInputStream 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.AutoCloseInputStream.Builder Builds a newAutoCloseInputStreaminstance.BOMInputStream This class is used to wrap a stream that includes an encodedByteOrderMarkas its first bytes.BOMInputStream.Builder Builds a newBOMInputStream.BoundedInputStream Reads bytes up to a maximum count and stops once reached.BoundedInputStream.Builder Builds a newBoundedInputStream.BoundedReader A reader that imposes a limit to the number of characters that can be read from an underlying reader, returning EOF when this limit is reached, regardless of state of underlying reader.BrokenInputStream Always throws an exception from allInputStreammethods whereIOExceptionis declared.BrokenReader Always throws an exception from allReadermethods whereIOExceptionis declared.BufferedFileChannelInputStream InputStreamimplementation which uses direct buffer to read a file to avoid extra copy of data between Java and native memory which happens when usingBufferedInputStream.BufferedFileChannelInputStream.Builder Builds a newBufferedFileChannelInputStream.CharacterFilterReader A filter reader that filters out a given character represented as anintcode point, handy to remove known junk characters from CSV files for example.CharacterSetFilterReader A filter reader that removes a given set of characters represented asintcode points, handy to remove known junk characters from CSV files for example.CharSequenceInputStream Implements anInputStreamto read bytes from String, StringBuffer, StringBuilder or CharBuffer, encoded using the specified Charset.CharSequenceInputStream.Builder Builds a newCharSequenceInputStream.CharSequenceReader Readerimplementation that can read from String, StringBuffer, StringBuilder or CharBuffer.ChecksumInputStream Automatically verifies aChecksumvalue once the stream is exhausted or the count threshold is reached.ChecksumInputStream.Builder Builds a newChecksumInputStream.CircularInputStream AnInputStreamthat repeats provided bytes for given target byte count.ClassLoaderObjectInputStream A special ObjectInputStream that loads a class based on a specifiedClassLoaderrather than the system default.ClosedInputStream Always returnsIOUtils.EOFto all attempts to read something from the stream.ClosedReader Always returnsIOUtils.EOFto all attempts to read something from it.CloseShieldInputStream Proxy stream that prevents the underlying input stream from being closed.CloseShieldReader Proxy reader that prevents the underlying reader from being closed.CountingInputStream Deprecated. UseBoundedInputStream(unbounded by default).DemuxInputStream Data written to this stream is forwarded to a stream that has been associated with this thread.InfiniteCircularInputStream AnInputStreamthat infinitely repeats the provided bytes.MarkShieldInputStream This is an alternative toByteArrayInputStreamwhich removes the synchronization overhead for non-concurrent access; as such this class is not thread-safe.MemoryMappedFileInputStream AnInputStreamthat utilizes memory mapped files to improve performance.MemoryMappedFileInputStream.Builder Builds a newMemoryMappedFileInputStream.MessageDigestCalculatingInputStream Deprecated. MessageDigestCalculatingInputStream.Builder Builds a newMessageDigestCalculatingInputStream.MessageDigestCalculatingInputStream.MessageDigestMaintainingObserver Maintains the message digest.MessageDigestInputStream This class is an example for using anObservableInputStream.MessageDigestInputStream.Builder Builds newMessageDigestInputStream.MessageDigestInputStream.MessageDigestMaintainingObserver Maintains the message digest.NullInputStream A functional, light weightInputStreamthat emulates a stream of a specified size.NullReader A functional, light weightReaderthat emulates a reader of a specified size.ObservableInputStream TheObservableInputStreamallows, that an InputStream may be consumed by other receivers, apart from the thread, which is reading it.ObservableInputStream.Observer Abstracts observer callback forObservableInputStreams.ProxyInputStream A proxy stream which acts as aFilterInputStream, by passing all method calls on to the proxied stream, not changing which methods are called.ProxyReader 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.QueueInputStream Simple alternative to JDKPipedInputStream; queue input stream provides what's written in queue output stream.QueueInputStream.Builder Builds a newQueueInputStream.RandomAccessFileInputStream Streams data from aRandomAccessFilestarting at its current position.RandomAccessFileInputStream.Builder Builds a newRandomAccessFileInputStream.ReadAheadInputStream ImplementsInputStreamto asynchronously read ahead from an underlying input stream when a specified amount of data has been read from the current buffer.ReadAheadInputStream.Builder Builds a newReadAheadInputStream.ReaderInputStream InputStreamimplementation that reads a character stream from aReaderand transforms it to a byte stream using a specified charset encoding.ReaderInputStream.Builder Builds a newReaderInputStream.ReversedLinesFileReader Reads lines in a file reversely (similar to a BufferedReader, but starting at the last line).ReversedLinesFileReader.Builder Builds a newReversedLinesFileReader.SequenceReader Provides the contents of multipleReaders in sequence.SwappedDataInputStream DataInput for systems relying on little-endian data formats.TaggedInputStream An input stream decorator that tags potential exceptions so that the stream that caused the exception can easily be identified.TaggedReader A reader decorator that tags potential exceptions so that the reader that caused the exception can easily be identified.Tailer Simple implementation of the UNIX "tail -f" functionality.Tailer.Builder Builds a newTailer.TailerListenerAdapter TailerListenerAdapter.TeeInputStream InputStream proxy that transparently writes a copy of all bytes read from the proxied stream to a given OutputStream.TeeReader Reader proxy that transparently writes a copy of all characters read from the proxied reader to a given Reader.ThrottledInputStream Provides bandwidth throttling on a specified InputStream.ThrottledInputStream.Builder Builds a newThrottledInputStream.TimestampedObserver An observer with timestamps.UncheckedBufferedReader ABufferedReaderthat throwsUncheckedIOExceptioninstead ofIOException.UncheckedBufferedReader.Builder Builds a newUncheckedBufferedReader.UncheckedFilterInputStream ABufferedReaderthat throwsUncheckedIOExceptioninstead ofIOException.UncheckedFilterInputStream.Builder Builds a newUncheckedFilterInputStream.UncheckedFilterReader AFilterReaderthat throwsUncheckedIOExceptioninstead ofIOException.UncheckedFilterReader.Builder Builds a newUncheckedFilterReader.UnixLineEndingInputStream A filtering input stream that ensures the content will have UNIX-style line endings, LF.UnsynchronizedBufferedInputStream An unsynchronized version ofBufferedInputStream, not thread-safe.UnsynchronizedBufferedInputStream.Builder Builds a newUnsynchronizedBufferedInputStream.UnsynchronizedByteArrayInputStream This is an alternative toByteArrayInputStreamwhich removes the synchronization overhead for non-concurrent access; as such this class is not thread-safe.UnsynchronizedByteArrayInputStream.Builder Builds a newUnsynchronizedByteArrayInputStream.UnsynchronizedFilterInputStream An unsynchronized version ofFilterInputStream, not thread-safe.UnsynchronizedFilterInputStream.Builder Builds a newUnsynchronizedFilterInputStream.WindowsLineEndingInputStream A filtering input stream that ensures the content will have Windows line endings, CRLF.XmlStreamReader Character stream that handles all the necessary Voodoo to figure out the charset encoding of the XML document within the stream.XmlStreamReader.Builder Builds a newXmlStreamWriter. - 
Exception Summary Exception Description XmlStreamReaderException The XmlStreamReaderException is thrown by the XmlStreamReader constructors if the charset encoding can not be determined according to the XML 1.0 specification and RFC 3023.