public final class Line extends Object
Modifier and Type | Method | Description |
---|---|---|
CharSequence |
getContent() |
The content of this line.
|
int |
getLength() |
The length in bytes of this line.
|
long |
getOffset() |
The byte offset of the first character of this line into the parsed
file.
|
public long getOffset()
public int getLength()
public CharSequence getContent()
This is a view in a mutable buffer that is reused. Any content that
is used after the callback has to be copied with
CharSequence.toString()
ideally calling
CharSequence.subSequence(int, int)
first.
Remember Object.equals(Object)
and Object.hashCode()
are not defined for CharSequence
and CharSequence
should therefore not be used as Map
keys.
String.contentEquals(CharSequence)
Copyright © 2015–2017. All rights reserved.