public class ReverseFileReader extends Object implements Closeable
| Modifier and Type | Field and Description |
|---|---|
protected String |
filename |
protected long |
position |
protected RandomAccessFile |
randomfile |
| Constructor and Description |
|---|
ReverseFileReader(File file) |
ReverseFileReader(String filename) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected void |
finalize() |
String |
readLine()
Read one line from the current position towards the beginning.
|
protected String filename
protected RandomAccessFile randomfile
protected long position
public ReverseFileReader(File file) throws IOException
IOExceptionpublic ReverseFileReader(String filename) throws IOException
IOExceptionpublic String readLine() throws IOException
IOException - if any pb while reading linepublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2004–2020 CodeLutin. All rights reserved.