public class EventLocation extends Object implements javax.xml.stream.Location
Modifier and Type | Method and Description |
---|---|
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.
|
static javax.xml.stream.Location |
getNilLocation() |
String |
getPublicId()
Returns the public ID of the XML
|
String |
getSystemId()
Returns the system ID of the XML
|
void |
setCharacterOffset(int offset) |
void |
setColumnNumber(int col) |
void |
setLineNumber(int line) |
void |
setPublicId(String id) |
void |
setSystemId(String id) |
String |
toString() |
public static javax.xml.stream.Location getNilLocation()
public int getLineNumber()
getLineNumber
in interface javax.xml.stream.Location
public int getColumnNumber()
getColumnNumber
in interface javax.xml.stream.Location
public int getCharacterOffset()
getCharacterOffset
in interface javax.xml.stream.Location
public String getPublicId()
getPublicId
in interface javax.xml.stream.Location
public String getSystemId()
getSystemId
in interface javax.xml.stream.Location
public void setLineNumber(int line)
public void setColumnNumber(int col)
public void setCharacterOffset(int offset)
public void setPublicId(String id)
public void setSystemId(String id)
Copyright © 2012 Oracle Corpration. All Rights Reserved.