# Package com.norconex.commons.lang.io

package com.norconex.commons.lang.io
Utility classes when dealing with files and directories.

- Related Packages
  Package
  Description
  com.norconex.commons.lang
  Miscellaneous classes.
- Class
  Description
  ByteArrayOutputStream
  This class is an alternate version of Java `ByteArrayOutputStream`.
  ByteBufferInputStream
  Wraps a `ByteBuffer` in an `InputStream`.
  CachedInputStream
  `InputStream` wrapper that can be re-read any number of times.
  CachedOutputStream
  `OutputStream` wrapper that caches the output so it can be retrieved once as a `CachedInputStream`.
  CachedStream
  Caches I/O streams for reuse.
  CachedStreamFactory
  Factory for input/output streams caching values for repeat usage.
  FilteredInputStream
  Decorates an InputStream with a stream filter.
  ICachedStream
  Deprecated.
  Use `CachedStream` instead.
  IInputStreamFilter
  Deprecated.
  use a String `Predicate` instead
  IInputStreamListener
  Deprecated.
  Use `InputStreamListener` instead.
  InputStreamConsumer
  A stream consumer will read all it can from a stream in its own thread.
  InputStreamLineListener
  Listener that is being notified every time a line is processed from a given stream.
  InputStreamListener
  Listener that is being notified every time a chunk of bytes is processed from a given input stream.
  IoUtil
  I/O related utility methods.
  RegexInputStreamFilter
  Filters lines of text read from an InputStream decorated with `FilteredInputStream`, based on a given regular expression.
  ReverseFileInputStream
  `InputStream` implementation for streaming files in reverse order (from the end of file to its beginning).
  StreamException
  Runtime exception when dealing with I/O streams.
  TextReader
  Reads text form an input stream, splitting it wisely whenever the text is too large.