public final class Offsets extends Object
SaxonDocBuilder and consumed by XmlTextTokenStream.| Constructor and Description |
|---|
Offsets() |
| Modifier and Type | Method and Description |
|---|---|
void |
addDelta(int deltaLocation,
short delta) |
void |
addOffset(int characterOffset) |
int |
getDelta(int i) |
int |
getDeltaCount() |
int |
getDeltaLocation(int i)
A delta is stored whenever the number of characters in the output token is not the same
as the number in the input character stream.
|
int |
getTextLocation(int i) |
void |
reset() |
public void reset()
public void addDelta(int deltaLocation,
short delta)
public void addOffset(int characterOffset)
public int getTextLocation(int i)
i - the index of the text nodepublic int getDeltaLocation(int i)
i - the index of the deltapublic int getDeltaCount()
public int getDelta(int i)
i - the index of the deltaCopyright © 2013. All Rights Reserved.