public class WstxInputLocation
extends java.lang.Object
implements java.io.Serializable, org.codehaus.stax2.XMLStreamLocation2
Location, used by Wstx readers.| Modifier and Type | Field and Description |
|---|---|
protected long |
mCharOffset |
protected int |
mCol |
protected WstxInputLocation |
mContext
Enclosing (parent) input location; location from which current
location is derived.
|
protected java.lang.String |
mDesc |
protected java.lang.String |
mPublicId |
protected int |
mRow |
protected java.lang.String |
mSystemId |
private static WstxInputLocation |
sEmptyLocation |
private static long |
serialVersionUID |
| Constructor and Description |
|---|
WstxInputLocation(WstxInputLocation ctxt,
java.lang.String pubId,
java.lang.String sysId,
long charOffset,
int row,
int col) |
WstxInputLocation(WstxInputLocation ctxt,
java.lang.String pubId,
SystemId sysId,
long charOffset,
int row,
int col) |
| Modifier and Type | Method and Description |
|---|---|
private void |
appendDesc(java.lang.StringBuilder sb) |
boolean |
equals(java.lang.Object o) |
int |
getCharacterOffset() |
long |
getCharacterOffsetLong() |
int |
getColumnNumber() |
org.codehaus.stax2.XMLStreamLocation2 |
getContext() |
static WstxInputLocation |
getEmptyLocation() |
int |
getLineNumber() |
java.lang.String |
getPublicId() |
java.lang.String |
getSystemId() |
int |
hashCode() |
java.lang.String |
toString() |
private static final long serialVersionUID
private static final WstxInputLocation sEmptyLocation
protected final WstxInputLocation mContext
protected final java.lang.String mPublicId
protected final java.lang.String mSystemId
protected final long mCharOffset
protected final int mCol
protected final int mRow
protected transient java.lang.String mDesc
public WstxInputLocation(WstxInputLocation ctxt, java.lang.String pubId, java.lang.String sysId, long charOffset, int row, int col)
ctxt - Enclosing input location, if anypublic WstxInputLocation(WstxInputLocation ctxt, java.lang.String pubId, SystemId sysId, long charOffset, int row, int col)
public static WstxInputLocation getEmptyLocation()
public long getCharacterOffsetLong()
public int getCharacterOffset()
getCharacterOffset in interface javax.xml.stream.Locationpublic int getColumnNumber()
getColumnNumber in interface javax.xml.stream.Locationpublic int getLineNumber()
getLineNumber in interface javax.xml.stream.Locationpublic java.lang.String getPublicId()
getPublicId in interface javax.xml.stream.Locationpublic java.lang.String getSystemId()
getSystemId in interface javax.xml.stream.Locationpublic org.codehaus.stax2.XMLStreamLocation2 getContext()
getContext in interface org.codehaus.stax2.XMLStreamLocation2public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectprivate void appendDesc(java.lang.StringBuilder sb)