Package com.fasterxml.aalto.impl
Class LocationImpl
java.lang.Object
com.fasterxml.aalto.impl.LocationImpl
- All Implemented Interfaces:
Location,org.codehaus.stax2.XMLStreamLocation2
Basic implementation of
XMLStreamLocation2, used by stream
readers and writers.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final intprotected final intprotected Stringprotected final Stringprotected final intprotected final Stringprivate static final LocationImplFields inherited from interface org.codehaus.stax2.XMLStreamLocation2
NOT_AVAILABLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidstatic LocationImplfromZeroBased(String pubId, String sysId, long rawOffset, int rawRow, int rawCol) Helper method that will adjust given internal zero-based values to 1-based values that should be externally visible.intintorg.codehaus.stax2.XMLStreamLocation2static LocationImplinttoString()
-
Field Details
-
EMPTY
-
_publicId
-
_systemId
-
_charOffset
protected final int _charOffset -
_col
protected final int _col -
_row
protected final int _row -
_desc
-
-
Constructor Details
-
LocationImpl
-
-
Method Details
-
fromZeroBased
public static LocationImpl fromZeroBased(String pubId, String sysId, long rawOffset, int rawRow, int rawCol) Helper method that will adjust given internal zero-based values to 1-based values that should be externally visible. -
getEmptyLocation
-
getCharacterOffset
public int getCharacterOffset()- Specified by:
getCharacterOffsetin interfaceLocation
-
getColumnNumber
public int getColumnNumber()- Specified by:
getColumnNumberin interfaceLocation
-
getLineNumber
public int getLineNumber()- Specified by:
getLineNumberin interfaceLocation
-
getPublicId
- Specified by:
getPublicIdin interfaceLocation
-
getSystemId
- Specified by:
getSystemIdin interfaceLocation
-
getContext
public org.codehaus.stax2.XMLStreamLocation2 getContext()- Specified by:
getContextin interfaceorg.codehaus.stax2.XMLStreamLocation2
-
toString
-
appendDesc
-