public class Stax2LocationAdapter extends java.lang.Object implements XMLStreamLocation2
XMLStreamLocation2
, which just
wraps Stax 1.0 Location
and adds no-operation implementation
of the additions.Modifier and Type | Field and Description |
---|---|
protected javax.xml.stream.Location |
mParentLocation |
protected javax.xml.stream.Location |
mWrappedLocation |
Constructor and Description |
---|
Stax2LocationAdapter(javax.xml.stream.Location loc) |
Stax2LocationAdapter(javax.xml.stream.Location loc,
javax.xml.stream.Location parent) |
Modifier and Type | Method and Description |
---|---|
int |
getCharacterOffset() |
int |
getColumnNumber() |
XMLStreamLocation2 |
getContext()
Method that can be used to traverse nested locations, like ones
created when expanding entities (especially external entities).
|
int |
getLineNumber() |
java.lang.String |
getPublicId() |
java.lang.String |
getSystemId() |
protected final javax.xml.stream.Location mWrappedLocation
protected final javax.xml.stream.Location mParentLocation
public Stax2LocationAdapter(javax.xml.stream.Location loc)
public Stax2LocationAdapter(javax.xml.stream.Location loc, javax.xml.stream.Location parent)
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