LineReader, Closeable, AutoCloseable, ReadableStringLineReaderpublic class BufferedLineReader extends LineNumberReader implements LineReader
| Constructor | Description |
|---|---|
BufferedLineReader(InputStream is) |
|
BufferedLineReader(InputStream is,
int bufferSize) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
|
static BufferedLineReader |
fromString(String s) |
Returns a
BufferedLineReader that gets its input from a String. |
int |
peek() |
Non-destructive one-character look-ahead.
|
String |
readLine() |
Read a line and remove the line terminator
|
lines, markSupported, readygetLineNumber, mark, read, read, reset, setLineNumber, skipgetLineNumberclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitread, read, transferTopublic BufferedLineReader(InputStream is)
public BufferedLineReader(InputStream is, int bufferSize)
public static BufferedLineReader fromString(String s)
BufferedLineReader that gets its input from a String. No charset conversion
is necessary because the String is in unicode.public String readLine()
readLine in interface LineReaderreadLine in class LineNumberReaderpublic int peek()
peek in interface LineReaderpublic void close()
close in interface AutoCloseableclose in interface Closeableclose in interface LineReaderclose in class BufferedReader