Package com.norconex.commons.lang.io
package com.norconex.commons.lang.io
Utility classes when dealing with files and directories.
-
ClassDescriptionThis class is an alternate version of Java
ByteArrayOutputStream.Wraps aByteBufferin anInputStream.InputStreamwrapper that can be re-read any number of times.OutputStreamwrapper that caches the output so it can be retrieved once as aCachedInputStream.Caches I/O streams for reuse.Factory for input/output streams caching values for repeat usage.Decorates an InputStream with a stream filter.Deprecated.Deprecated.use a StringPredicateinsteadDeprecated.UseInputStreamListenerinstead.A stream consumer will read all it can from a stream in its own thread.Listener that is being notified every time a line is processed from a given stream.Listener that is being notified every time a chunk of bytes is processed from a given input stream.I/O related utility methods.Filters lines of text read from an InputStream decorated withFilteredInputStream, based on a given regular expression.InputStreamimplementation for streaming files in reverse order (from the end of file to its beginning).Runtime exception when dealing with I/O streams.Reads text form an input stream, splitting it wisely whenever the text is too large.
CachedStreaminstead.