public class LocatorWrapper extends Object implements XMLLocator
Locator into Xerces XMLLocator.| Constructor and Description |
|---|
LocatorWrapper(Locator _loc) |
| Modifier and Type | Method and Description |
|---|---|
String |
getBaseSystemId()
Returns the base system identifier.
|
int |
getCharacterOffset()
Returns the character offset,
or
-1,
if no character offset is available. |
int |
getColumnNumber()
Returns the column number, or
-1 if no column number is available. |
String |
getEncoding()
Returns the encoding of the current entity.
|
String |
getExpandedSystemId()
Returns the expanded system identifier.
|
int |
getLineNumber()
Returns the line number, or
-1 if no line number is available. |
String |
getLiteralSystemId()
Returns the literal system identifier.
|
String |
getPublicId()
Returns the public identifier.
|
String |
getXMLVersion()
Returns the XML version of the current entity.
|
public LocatorWrapper(Locator _loc)
public int getColumnNumber()
XMLLocator-1 if no column number is available.getColumnNumber in interface XMLLocatorpublic int getLineNumber()
XMLLocator-1 if no line number is available.getLineNumber in interface XMLLocatorpublic String getBaseSystemId()
XMLLocatorgetBaseSystemId in interface XMLLocatorpublic String getExpandedSystemId()
XMLLocatorgetExpandedSystemId in interface XMLLocatorpublic String getLiteralSystemId()
XMLLocatorgetLiteralSystemId in interface XMLLocatorpublic String getPublicId()
XMLLocatorgetPublicId in interface XMLLocatorpublic String getEncoding()
XMLLocatorgetEncoding in interface XMLLocatorpublic int getCharacterOffset()
Returns the character offset,
or -1,
if no character offset is available.
As this information is not available from
Locator,
always return -1.
getCharacterOffset in interface XMLLocatorpublic String getXMLVersion()
Returns the XML version of the current entity.
As this information is not available from
Locator,
always return null.
getXMLVersion in interface XMLLocatorCopyright © 2018–2021 mhoffrogge. All rights reserved.