XMLStreamLocation2, used by stream
readers and writers.
| Modifier and Type | Field and Description |
|---|---|
| protected final int | |
| protected final int | |
| protected transient String | |
| protected final String | |
| protected final int | |
| protected final String | |
| private static final LocationImpl |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public static LocationImpl | fromZeroBased(String pubId, String sysId, long rawOffset, int rawRow, int rawCol)
Helper method that will adjust given internal zero-based values to 1-based values that should be externally visible. |
| public int | getCharacterOffset()
Implements javax. |
| public int | getColumnNumber()
Implements javax. |
| public XMLStreamLocation2 | getContext()
Implements org. |
| public static LocationImpl | |
| public int | getLineNumber()
Implements javax. |
| public String | |
| public String | |
| public String |
| _charOffset | back to summary |
|---|---|
| protected final int _charOffset | |
| _col | back to summary |
|---|---|
| protected final int _col | |
| _desc | back to summary |
|---|---|
| protected transient String _desc | |
| _publicId | back to summary |
|---|---|
| protected final String _publicId | |
| _row | back to summary |
|---|---|
| protected final int _row | |
| _systemId | back to summary |
|---|---|
| protected final String _systemId | |
| EMPTY | back to summary |
|---|---|
| private static final LocationImpl EMPTY | |
| LocationImpl | back to summary |
|---|---|
| public LocationImpl(String pubId, String sysId, int charOffset, int row, int col) | |
| appendDesc | back to summary |
|---|---|
| private void appendDesc(StringBuffer sb) | |
| fromZeroBased | back to summary |
|---|---|
| public static LocationImpl fromZeroBased(String pubId, String sysId, long rawOffset, int rawRow, int rawCol) Helper method that will adjust given internal zero-based values to 1-based values that should be externally visible. | |
| getCharacterOffset | back to summary |
|---|---|
| public int getCharacterOffset() Implements javax. Doc from javax. Return the byte or character offset into the input source this location is pointing to. If the input source is a file or a byte stream then this is the byte offset into that stream, but if the input source is a character media then the offset is the character offset. Returns -1 if there is no offset available.
| |
| getColumnNumber | back to summary |
|---|---|
| public int getColumnNumber() Implements javax. Doc from javax. Return the column number where the current event ends, returns -1 if none is available.
| |
| getContext | back to summary |
|---|---|
| public XMLStreamLocation2 getContext() Implements org. Doc from org. Method that can be used to traverse nested locations, like ones created when expanding entities (especially external entities). If so, single location object only contains information about specific offsets and ids, and a link to its context. Outermost location will return null to indicate there is no more information to retrieve.
| |
| getEmptyLocation | back to summary |
|---|---|
| public static LocationImpl getEmptyLocation() | |
| getLineNumber | back to summary |
|---|---|
| public int getLineNumber() Implements javax. Doc from javax. Return the line number where the current event ends, returns -1 if none is available.
| |
| getPublicId | back to summary |
|---|---|
| public String getPublicId() Implements javax. Doc from javax. Returns the public ID of the XML | |
| getSystemId | back to summary |
|---|---|
| public String getSystemId() Implements javax. Doc from javax. Returns the system ID of the XML | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |