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 int
protected final int
protected String
protected final String
protected final int
protected final String
private static final LocationImpl
Fields inherited from interface org.codehaus.stax2.XMLStreamLocation2
NOT_AVAILABLE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
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.int
int
org.codehaus.stax2.XMLStreamLocation2
static LocationImpl
int
toString()
-
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:
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
-
appendDesc
-