public class ReversedLinesFileReader extends Object implements Closeable
| Constructor and Description | 
|---|
ReversedLinesFileReader(File file)
Deprecated. 
 
2.5 use  
ReversedLinesFileReader(File, Charset) instead | 
ReversedLinesFileReader(File file,
                                              Charset charset)
Creates a ReversedLinesFileReader with default block size of 4KB and the
 specified encoding. 
 | 
ReversedLinesFileReader(File file,
                                              int blockSize,
                                              Charset encoding)
Creates a ReversedLinesFileReader with the given block size and encoding. 
 | 
ReversedLinesFileReader(File file,
                                              int blockSize,
                                              String encoding)
Creates a ReversedLinesFileReader with the given block size and encoding. 
 | 
@Deprecated public ReversedLinesFileReader(File file) throws IOException
ReversedLinesFileReader(File, Charset) insteadfile - the file to be readIOException - if an I/O error occurspublic ReversedLinesFileReader(File file, Charset charset) throws IOException
file - the file to be readcharset - the encoding to useIOException - if an I/O error occurspublic ReversedLinesFileReader(File file, int blockSize, Charset encoding) throws IOException
file - the file to be readblockSize - size of the internal buffer (for ideal performance this should
            match with the block size of the underlying file system).encoding - the encoding of the fileIOException - if an I/O error occurspublic ReversedLinesFileReader(File file, int blockSize, String encoding) throws IOException
file - the file to be readblockSize - size of the internal buffer (for ideal performance this should
            match with the block size of the underlying file system).encoding - the encoding of the fileIOException - if an I/O error occursUnsupportedCharsetException - thrown instead of UnsupportedEncodingException in
 version 2.2 if the encoding is not supported.public String readLine() throws IOException
IOException - if an I/O error occurspublic void close() throws IOException
close in interface Closeableclose in interface AutoCloseableIOException - if an I/O error occursCopyright © 2002–2016 The Apache Software Foundation. All rights reserved.