com.ctc.wstx.io
public class WstxInputLocation extends java.lang.Object implements XMLStreamLocation2
Location
, used by Wstx readers.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() |
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