public interface StreamLocationProvider
For compatibility, the properties in this interface have the same names as in Location
.
Modifier and Type | Method and Description |
---|---|
long |
getCharacterOffset()
Returns the number of characters that have been read from this instance since the beginning of the
underlying stream.
|
long |
getColumnNumber()
Returns the column of the current line, where the cursor of this instance is currently located.
|
long |
getLineNumber()
Returns the number of the line in the stream, where the cursor of this instance is currently located.
|
long getCharacterOffset()
Note that due to the buffering of this class, this value may differ from the number of characters that have been read from the underlying stream.
long getLineNumber()
This reader keeps track of the line number by monitoring each line separator that is read. Supported
line separators are '\n'
, '\r'
or '\r\n'
.
long getColumnNumber()
getLineNumber()