SAX2 extension helper for holding additional Entity information,
implementing the Locator2 interface.
SAX2 extension helper for holding additional Entity information,
implementing the Locator2 interface.
This module, both source code and documentation, is in the
Public Domain, and comes with NO WARRANTY.
This is not part of core-only SAX2 distributions.
See also:
Constructors
public Locator2Impl
()
Construct a new, empty Locator2Impl object.
Construct a new, empty Locator2Impl object. This will not normally be useful, since the main purpose of this class is to make a snapshot of an existing Locator.
Copy an existing Locator or Locator2 object. If the object implements Locator2, values of the encoding and versionstrings are copied, otherwise they set to null.
Parameters: - locator - The existing Locator object.
public void
setColumnNumber
(int columnNumber)
[Inherited From LocatorImpl]
Set the column number for this locator (1-based).
Set the column number for this locator (1-based).
Parameters: - columnNumber - The column number, or -1 if none is available.
See Also:LocatorImpl.getColumnNumber(),
Assigns the current value of the encoding property.
Assigns the current value of the encoding property.
Parameters: - encoding - the new "encoding" value
See Also:Locator2Impl.getEncoding(),
public void
setLineNumber
(int lineNumber)
[Inherited From LocatorImpl]
Set the line number for this locator (1-based).
Set the line number for this locator (1-based).
Parameters: - lineNumber - The line number, or -1 if none is available.
See Also:LocatorImpl.getLineNumber(),
public void
setPublicId
(String publicId)
[Inherited From LocatorImpl]
Set the public identifier for this locator.
Set the public identifier for this locator.
Parameters: - publicId - The new public identifier, or null
if none is available.
See Also:LocatorImpl.getPublicId(),
public void
setSystemId
(String systemId)
[Inherited From LocatorImpl]
Set the system identifier for this locator.
Set the system identifier for this locator.
Parameters: - systemId - The new system identifier, or null
if none is available.
See Also:LocatorImpl.getSystemId(),