-
@ApiStatus.Internal() public final class LinesA stream of parsed lines. Can be rewound, and sub-regions cloned for recursive descent parsing.
-
-
Field Summary
Fields Modifier and Type Field Description public intpos
-
Method Summary
Modifier and Type Method Description static LinesreadLines(@NotNull() File file)Read the whole file into a Lines object. static LinesreadLines(@NotNull() BufferedReader in)Read the whole file into a Lines object. booleanhasNext()If there are more lines to read within the current range. Linenext()Return the next line, or null if there are no more lines to read. voidrewind()Move the read position back by one line. -
-
Method Detail
-
readLines
static Lines readLines(@NotNull() BufferedReader in)
Read the whole file into a Lines object.
-
hasNext
boolean hasNext()
If there are more lines to read within the current range.
-
next
@Nullable() Line next()
Return the next line, or null if there are no more lines to read. Also returns null in theerror condition where pos is before the beginning.
-
rewind
void rewind()
Move the read position back by one line.
-
-
-
-