| Constructor and Description |
|---|
StaxLocationWrapper(Location loc)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static ILocation |
fromLocation(Location loc)
Static method to wrap a Location object
|
int |
getCharacterOffset()
Return the byte or character offset into the input source this location
is pointing to.
|
int |
getColumnNumber()
Return the column number where the current event ends, returns -1 if none
is available.
|
int |
getLineNumber()
Return the line number where the current event ends, returns -1 if none
is available.
|
String |
getPublicId()
Returns the public ID of the XML
|
String |
getSystemId()
Returns the system ID of the XML
|
public StaxLocationWrapper(Location loc)
loc - The location to be wrapped.public int getLineNumber()
getLineNumber in interface ILocationpublic int getColumnNumber()
getColumnNumber in interface ILocationpublic int getCharacterOffset()
getCharacterOffset in interface ILocationpublic String getPublicId()
getPublicId in interface ILocationpublic String getSystemId()
getSystemId in interface ILocationCopyright © 2012. All Rights Reserved.