com.ctc.wstx.io
public class WstxInputLocation extends java.lang.Object implements java.io.Serializable, XMLStreamLocation2
Location
, used by Wstx readers.Modifier and Type | Field and Description |
---|---|
protected int |
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 |
NOT_AVAILABLE
Constructor and Description |
---|
WstxInputLocation(WstxInputLocation ctxt,
java.lang.String pubId,
java.lang.String sysId,
int charOffset,
int row,
int col) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
int |
getCharacterOffset() |
int |
getColumnNumber() |
XMLStreamLocation2 |
getContext()
Method that can be used to traverse nested locations, like ones
created when expanding entities (especially external entities).
|
static WstxInputLocation |
getEmptyLocation() |
int |
getLineNumber() |
java.lang.String |
getPublicId() |
java.lang.String |
getSystemId() |
int |
hashCode() |
java.lang.String |
toString() |
protected final WstxInputLocation mContext
protected final java.lang.String mPublicId
protected final java.lang.String mSystemId
protected final int 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, int charOffset, int row, int col)
ctxt
- Enclosing input location, if anypublic static WstxInputLocation getEmptyLocation()
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 XMLStreamLocation2 getContext()
XMLStreamLocation2
getContext
in interface 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