java.io.BufferedReader#readLine() but for all Readable objects, not just instances of
Reader.
| Modifier and Type | Field and Description |
|---|---|
| private final char[] | |
| private final CharBuffer | |
| private final LineBuffer | |
| private final Queue | |
| private final Readable | |
| private final Reader |
| Access | Constructor and Description |
|---|---|
| public | LineReader(Readable readable)
Creates a new instance that will read lines from the given |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: aString containing the contents of the line, not including any
line-termination characters, or null if the end of the stream has been reached.Reads a line of text. |
| buf | back to summary |
|---|---|
| private final char[] buf | |
| cbuf | back to summary |
|---|---|
| private final CharBuffer cbuf | |
| lineBuf | back to summary |
|---|---|
| private final LineBuffer lineBuf | |
| lines | back to summary |
|---|---|
| private final Queue<String> lines | |
| readable | back to summary |
|---|---|
| private final Readable readable | |
| reader | back to summary |
|---|---|
| private final Reader reader
| |
| LineReader | back to summary |
|---|---|
| public LineReader(Readable readable) Creates a new instance that will read lines from the given | |
| readLine | back to summary |
|---|---|
| public String readLine() throws IOException Reads a line of text. A line is considered to be terminated by any one of a line feed (
| |