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.Location
public int getColumnNumber()
getColumnNumber
in interface javax.xml.stream.Location
public int getLineNumber()
getLineNumber
in interface javax.xml.stream.Location
public java.lang.String getPublicId()
getPublicId
in interface javax.xml.stream.Location
public java.lang.String getSystemId()
getSystemId
in interface javax.xml.stream.Location
public org.codehaus.stax2.XMLStreamLocation2 getContext()
getContext
in interface org.codehaus.stax2.XMLStreamLocation2
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
private void appendDesc(java.lang.StringBuilder sb)