I looked at the documentation for this feature, and they seemed to say it very vaguely.
Adapts this scanner to the current line and returns the missed input. This method returns the rest of the current line, with the exception of the line separator at the end. The position is set to the beginning of the next line. Since this method continues searching through an input looking for a line separator, it can buffer the entire input line search to skip if there are no line separators.
Under βany line separator,β should this be interpreted as things like NUL, EM, FS, ETX, etc., or just the first newline character that it encounters?
I really want javadocs to be a little more explicit.
source
share