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) |
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–2013 CodeLutin. All rights reserved.