public class GridReversedLinesFileReader extends Object implements Closeable
| Constructor and Description |
|---|
GridReversedLinesFileReader(File file)
Creates a ReverseLineReader with default block size of 4KB and the
platform's default encoding.
|
GridReversedLinesFileReader(File file,
int blockSize,
Charset charset)
Creates a ReverseLineReader with the given block size and encoding.
|
GridReversedLinesFileReader(File file,
int blockSize,
String encoding)
Creates a ReverseLineReader with the given block size and encoding.
|
public GridReversedLinesFileReader(File file) throws IOException
file - the file to be readIOException - if an I/O error occurspublic GridReversedLinesFileReader(File file, int blockSize, Charset charset) 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).charset - the encoding of the fileIOException - if an I/O error occurspublic GridReversedLinesFileReader(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 occurs
Follow @ApacheIgnite
Ignite Fabric : ver. 1.6.0 Release Date : May 18 2016