Class ReverseFileReader
java.lang.Object
org.nuiton.util.ReverseFileReader
- All Implemented Interfaces:
Closeable, AutoCloseable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
filename
-
randomfile
-
position
protected long position
-
-
Constructor Details
-
ReverseFileReader
- Throws:
IOException
-
ReverseFileReader
- Throws:
IOException
-
-
Method Details
-
readLine
Read one line from the current position towards the beginning.- Returns:
- the next line of text from this file, or null if end of file is encountered before even one byte is read.
- Throws:
IOException- if any pb while reading line
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
finalize
-