readLinesUntilImpl
@VisibleForTesting
@VisibleForTesting
Implementation for readLinesUntil.
Note: This method is split out to allow unit testing of different nioLineSplitting behaviors.
Parameters
nioLineSplitting
If true
, adheres to the legacy line splitting behavior, which drops the last element in the List
if the last element of the List
is empty (i.e. when the input string terminates with \n
). This behavior is adopted by most utilities in the Files utility functions, including Files.readAllLines.
See also
Throws
when this file path does not exist.