Location, used by Wstx readers.
| Modifier and Type | Field and Description |
|---|---|
| protected final long | |
| protected final int | |
| protected final WstxInputLocation | mContext
Enclosing (parent) input location; location from which current location is derived. |
| protected transient String | |
| protected final String | |
| protected final int | |
| protected final String | |
| private static final WstxInputLocation | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | WstxInputLocation(WstxInputLocation
Enclosing input location, if any ctxt, String pubId, String sysId, long charOffset, int row, int col)
|
| public | WstxInputLocation(WstxInputLocation ctxt, String pubId, SystemId sysId, long charOffset, int row, int col)
|
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. Indicates whether some other object is "equal to" this one. |
| public int | getCharacterOffset()
Implements javax. Return the byte or character offset into the input source this location is pointing to. |
| public long | |
| public int | getColumnNumber()
Implements javax. Return the column number where the current event ends, returns -1 if none is available. |
| public XMLStreamLocation2 | getContext()
Implements org. Method that can be used to traverse nested locations, like ones created when expanding entities (especially external entities). |
| public static WstxInputLocation | |
| public int | getLineNumber()
Implements javax. Return the line number where the current event ends, returns -1 if none is available. |
| public String | |
| public String | |
| public int | |
| public String |
| mCharOffset | back to summary |
|---|---|
| protected final long mCharOffset | |
| mCol | back to summary |
|---|---|
| protected final int mCol | |
| mContext | back to summary |
|---|---|
| protected final WstxInputLocation mContext Enclosing (parent) input location; location from which current location is derived. | |
| mDesc | back to summary |
|---|---|
| protected transient String mDesc | |
| mPublicId | back to summary |
|---|---|
| protected final String mPublicId | |
| mRow | back to summary |
|---|---|
| protected final int mRow | |
| mSystemId | back to summary |
|---|---|
| protected final String mSystemId | |
| sEmptyLocation | back to summary |
|---|---|
| private static final WstxInputLocation sEmptyLocation | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| WstxInputLocation | back to summary |
|---|---|
public WstxInputLocation(WstxInputLocation ctxt, String pubId, String sysId, long charOffset, int row, int col)
| |
| WstxInputLocation | back to summary |
|---|---|
| public WstxInputLocation(WstxInputLocation ctxt, String pubId, SystemId sysId, long charOffset, int row, int col) | |
| appendDesc | back to summary |
|---|---|
| private void appendDesc(StringBuilder sb) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| 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.
| |
| getCharacterOffsetLong | back to summary |
|---|---|
| public long getCharacterOffsetLong() | |
| 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 WstxInputLocation 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 | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |