Package com.ctc.wstx.io
Class WstxInputLocation
- java.lang.Object
-
- com.ctc.wstx.io.WstxInputLocation
-
- All Implemented Interfaces:
java.io.Serializable,javax.xml.stream.Location,org.codehaus.stax2.XMLStreamLocation2
public class WstxInputLocation extends java.lang.Object implements java.io.Serializable, org.codehaus.stax2.XMLStreamLocation2Basic implementation ofLocation, used by Wstx readers.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected longmCharOffsetprotected intmColprotected WstxInputLocationmContextEnclosing (parent) input location; location from which current location is derived.protected java.lang.StringmDescprotected java.lang.StringmPublicIdprotected intmRowprotected java.lang.StringmSystemIdprivate static WstxInputLocationsEmptyLocationprivate static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description WstxInputLocation(WstxInputLocation ctxt, java.lang.String pubId, SystemId sysId, long charOffset, int row, int col)WstxInputLocation(WstxInputLocation ctxt, java.lang.String pubId, java.lang.String sysId, long charOffset, int row, int col)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidappendDesc(java.lang.StringBuilder sb)booleanequals(java.lang.Object o)intgetCharacterOffset()longgetCharacterOffsetLong()intgetColumnNumber()org.codehaus.stax2.XMLStreamLocation2getContext()static WstxInputLocationgetEmptyLocation()intgetLineNumber()java.lang.StringgetPublicId()java.lang.StringgetSystemId()inthashCode()java.lang.StringtoString()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
sEmptyLocation
private static final WstxInputLocation sEmptyLocation
-
mContext
protected final WstxInputLocation mContext
Enclosing (parent) input location; location from which current location is derived.
-
mPublicId
protected final java.lang.String mPublicId
-
mSystemId
protected final java.lang.String mSystemId
-
mCharOffset
protected final long mCharOffset
-
mCol
protected final int mCol
-
mRow
protected final int mRow
-
mDesc
protected transient java.lang.String mDesc
-
-
Constructor Detail
-
WstxInputLocation
public WstxInputLocation(WstxInputLocation ctxt, java.lang.String pubId, java.lang.String sysId, long charOffset, int row, int col)
- Parameters:
ctxt- Enclosing input location, if any
-
WstxInputLocation
public WstxInputLocation(WstxInputLocation ctxt, java.lang.String pubId, SystemId sysId, long charOffset, int row, int col)
-
-
Method Detail
-
getEmptyLocation
public static WstxInputLocation getEmptyLocation()
-
getCharacterOffsetLong
public long getCharacterOffsetLong()
-
getCharacterOffset
public int getCharacterOffset()
- Specified by:
getCharacterOffsetin interfacejavax.xml.stream.Location
-
getColumnNumber
public int getColumnNumber()
- Specified by:
getColumnNumberin interfacejavax.xml.stream.Location
-
getLineNumber
public int getLineNumber()
- Specified by:
getLineNumberin interfacejavax.xml.stream.Location
-
getPublicId
public java.lang.String getPublicId()
- Specified by:
getPublicIdin interfacejavax.xml.stream.Location
-
getSystemId
public java.lang.String getSystemId()
- Specified by:
getSystemIdin interfacejavax.xml.stream.Location
-
getContext
public org.codehaus.stax2.XMLStreamLocation2 getContext()
- Specified by:
getContextin interfaceorg.codehaus.stax2.XMLStreamLocation2
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
appendDesc
private void appendDesc(java.lang.StringBuilder sb)
-
-