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 LineReader
public int getLineNumber()
getLineNumber
in interface LineReader
public int peek()
peek
in interface LineReader
public void close()
close
in interface LineReader
close
in interface Closeable
close
in interface AutoCloseable