|
GXPARSE hosted by |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Location
Provides information about the parser's current location. The parser's
current location is the point between the last document character to have
been passed to the application as a character, an event, or a part of an
object, and the next character that the parser is about to evaluate.
The reported location is approximate because the information is not updated
with every character that the parser reads. A Parser
implementation should at least update the location at the beginning and end
of each element.
Method Summary | |
---|---|
int |
getColumnNumber()
Return the approximate column number at the parser's current location within the current document. |
String |
getEncoding()
Returns the name of the character encoding for the entity. |
int |
getLineNumber()
Return the approximate line number at the parser's current location within the current document. |
long |
getOffset()
Return the approximate offset at the parser's current location. |
String |
getPublicId()
Return the public identifier of the document that contains the parser's current location. |
String |
getSystemId()
Return the system identifier of the document that contains the parser's current location. |
String |
getXMLVersion()
Returns the version of XML used for the entity. |
String |
toString()
String description of this Location . |
Method Detail |
---|
int getColumnNumber()
Return the approximate column number at the parser's current location within the current document.
getLineNumber()
int getLineNumber()
Return the approximate line number at the parser's current location within the current document.
getColumnNumber()
long getOffset()
Return the approximate offset at the parser's current location.
The meaning of this offset, when it is available, is dependent on the
Parser
implementation.
String getPublicId()
Return the public identifier of the document that contains the parser's current location.
String getSystemId()
Return the system identifier of the document that contains the parser's current location.
String getXMLVersion()
Returns the version of XML used for the entity.
String getEncoding()
Returns the name of the character encoding for the entity.
String toString()
String description of this Location
.
toString
in class Object
|
GXPARSE download | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |