public class BufferedLineReader extends Object implements LineReader
LineNumberReader?| Constructor and Description |
|---|
BufferedLineReader(InputStream is) |
BufferedLineReader(InputStream is,
int bufferSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
getLineNumber() |
int |
peek()
Non-destructive one-character look-ahead.
|
String |
readLine()
Read a line and remove the line terminator
|
public BufferedLineReader(InputStream is)
public BufferedLineReader(InputStream is, int bufferSize)
public String readLine()
readLine in interface LineReaderpublic int getLineNumber()
getLineNumber in interface LineReaderpublic int peek()
peek in interface LineReaderpublic void close()
close in interface LineReaderclose in interface Closeableclose in interface AutoCloseable