Package com.norconex.commons.lang.io
Utility classes when dealing with files and directories.
-
Interface Summary Interface Description ICachedStream IInputStreamFilter Deprecated. use a StringPredicate
insteadIInputStreamListener Listener that is being notified every time a chunk of bytes is processed from a given input stream. -
Class Summary Class Description ByteArrayOutputStream This class is an alternate version of JavaByteArrayOutputStream
.ByteBufferInputStream Wraps aByteBuffer
in anInputStream
.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 aCachedInputStream
.CachedStreamFactory Factory for input/output streams caching values for repeat usage.FilteredInputStream Decorates an InputStream with a stream filter.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.IOUtil I/O related utility methods.RegexInputStreamFilter Filters lines of text read from an InputStream decorated withFilteredInputStream
, based on a given regular expression.ReverseFileInputStream InputStream
implementation for streaming files in reverse order (from the end of file to its beginning).TextReader Reads text form an input stream, splitting it wisely whenever the text is too large. -
Exception Summary Exception Description StreamException Runtime exception when dealing with I/O streams.