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
IOException
public ReverseFileReader(String filename) throws IOException
IOException
public String readLine() throws IOException
IOException
- if any pb while reading linepublic void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2004–2020 CodeLutin. All rights reserved.