Package com.norconex.commons.lang.io
Class ReverseFileInputStream
java.lang.Object
java.io.InputStream
com.norconex.commons.lang.io.ReverseFileInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
InputStream implementation for streaming files in reverse order
(from the end of file to its beginning).-
Constructor Summary
ConstructorsConstructorDescriptionReverseFileInputStream(File file) Creates a newReverseFileInputStreaminstance. -
Method Summary
Methods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
ReverseFileInputStream
Creates a newReverseFileInputStreaminstance.- Parameters:
file- the file to stream- Throws:
IOException- problem streaming the file
-
-
Method Details
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-