public class StringLineReader extends Object implements LineReader
| Constructor and Description |
|---|
StringLineReader(String s) |
| 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 StringLineReader(String s)
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