public interface SimpleFileReader extends AutoCloseable
Modifier and Type | Method and Description |
---|---|
void |
close() |
static SimpleFileReader |
getFileReader(File file)
Returns a file reader, text or gz, according to the extension of the file.
|
double |
getProgressInPercent()
Returns the progress reading the file in percent.
|
Reader |
getReader()
Returns the underlying reader.
|
int |
read(char[] buffer)
Reads characters into an array.
|
int |
read(char[] buffer,
int offset,
int length)
Reads characters into an array.
|
String |
readLine()
Reads a line of the file.
|
static SimpleFileReader getFileReader(File file)
file
- the fileString readLine()
int read(char[] buffer)
buffer
- The destination buffer.int read(char[] buffer, int offset, int length)
buffer
- The destination buffer.offset
- The offset at which to start storing characterslength
- The maximum number of characters to readReader getReader()
double getProgressInPercent()
void close()
close
in interface AutoCloseable
Copyright © 2021. All rights reserved.