-
-
Field Summary
Fields Modifier and Type Field Description private final IntegerlineNumber
-
Method Summary
Modifier and Type Method Description final IntegergetLineNumber()final Unitskip(Integer n)Skips the next n tokens of input. final StringreadString()Reads the next token of the input as a string. final IntegerreadInt()Reads the next token of the input as an int. final DoublereadDouble()Reads the next token of the input as a double. final BooleanreadBoolean()Reads the next token of the input as a boolean value ("true" or "false" ignoring case). final StringnextLineText()Reads and returns the whole next line of input. final List<String>nextLineTokens()Reads and returns the next line of input as a list of strings. Unitclose()Releases potential resources used by the reader. -
-
Method Detail
-
getLineNumber
final Integer getLineNumber()
-
readString
final String readString()
Reads the next token of the input as a string.
-
readDouble
final Double readDouble()
Reads the next token of the input as a double.
-
readBoolean
final Boolean readBoolean()
Reads the next token of the input as a boolean value ("true" or "false" ignoring case).
-
nextLineText
final String nextLineText()
Reads and returns the whole next line of input.
-
nextLineTokens
final List<String> nextLineTokens()
Reads and returns the next line of input as a list of strings.
-
-
-
-