Package com.ctc.wstx.io
Class WstxInputLocation
java.lang.Object
com.ctc.wstx.io.WstxInputLocation
- All Implemented Interfaces:
Serializable
,Location
,org.codehaus.stax2.XMLStreamLocation2
public class WstxInputLocation
extends Object
implements Serializable, org.codehaus.stax2.XMLStreamLocation2
Basic implementation of
Location
, used by Wstx readers.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final long
protected final int
protected final WstxInputLocation
Enclosing (parent) input location; location from which current location is derived.protected String
protected final String
protected final int
protected final String
private static final WstxInputLocation
private static final long
Fields inherited from interface org.codehaus.stax2.XMLStreamLocation2
NOT_AVAILABLE
-
Constructor Summary
ConstructorsConstructorDescriptionWstxInputLocation
(WstxInputLocation ctxt, String pubId, SystemId sysId, long charOffset, int row, int col) WstxInputLocation
(WstxInputLocation ctxt, String pubId, String sysId, long charOffset, int row, int col) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
boolean
int
long
int
org.codehaus.stax2.XMLStreamLocation2
static WstxInputLocation
int
int
hashCode()
toString()
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
sEmptyLocation
-
mContext
Enclosing (parent) input location; location from which current location is derived. -
mPublicId
-
mSystemId
-
mCharOffset
protected final long mCharOffset -
mCol
protected final int mCol -
mRow
protected final int mRow -
mDesc
-
-
Constructor Details
-
WstxInputLocation
public WstxInputLocation(WstxInputLocation ctxt, String pubId, String sysId, long charOffset, int row, int col) - Parameters:
ctxt
- Enclosing input location, if any
-
WstxInputLocation
public WstxInputLocation(WstxInputLocation ctxt, String pubId, SystemId sysId, long charOffset, int row, int col)
-
-
Method Details
-
getEmptyLocation
-
getCharacterOffsetLong
public long getCharacterOffsetLong() -
getCharacterOffset
public int getCharacterOffset()- Specified by:
getCharacterOffset
in interfaceLocation
-
getColumnNumber
public int getColumnNumber()- Specified by:
getColumnNumber
in interfaceLocation
-
getLineNumber
public int getLineNumber()- Specified by:
getLineNumber
in interfaceLocation
-
getPublicId
- Specified by:
getPublicId
in interfaceLocation
-
getSystemId
- Specified by:
getSystemId
in interfaceLocation
-
getContext
public org.codehaus.stax2.XMLStreamLocation2 getContext()- Specified by:
getContext
in interfaceorg.codehaus.stax2.XMLStreamLocation2
-
toString
-
hashCode
public int hashCode() -
equals
-
appendDesc
-