public static class ReceivingContentHandler.LocalLocator extends Object implements Location
Location interface that wraps the SAX Locator
information. Note that this object is mutable and changes continually as parsing proceeds;
it is therefore necessary to call its saveLocation() method to obtain an
immutable location that still has meaning once parsing is finished.| Modifier and Type | Field and Description |
|---|---|
int |
levelInEntity |
| Constructor and Description |
|---|
LocalLocator(Locator saxLocator) |
| Modifier and Type | Method and Description |
|---|---|
int |
getColumnNumber()
Return the character position where the current document event ends.
|
int |
getLineNumber()
Return the line number where the current document event ends.
|
String |
getPublicId()
Return the public identifier for the current document event.
|
String |
getSystemId()
Return the system identifier for the current document event.
|
Location |
saveLocation()
Get an immutable copy of this Location object.
|
public LocalLocator(Locator saxLocator)
public String getSystemId()
getSystemId in interface SourceLocatorgetSystemId in interface LocationgetSystemId in interface Locatorpublic String getPublicId()
getPublicId in interface SourceLocatorgetPublicId in interface LocationgetPublicId in interface Locatorpublic int getLineNumber()
getLineNumber in interface SourceLocatorgetLineNumber in interface LocationgetLineNumber in interface Locatorpublic int getColumnNumber()
getColumnNumber in interface SourceLocatorgetColumnNumber in interface LocationgetColumnNumber in interface Locatorpublic Location saveLocation()
saveLocation in interface Location