Class Overview
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.
Summary
[Expand]
Inherited Methods |
From class org.xml.sax.helpers.LocatorImpl
|
From class java.lang.Object
Object
|
clone()
Creates and returns a copy of this Object .
|
boolean
|
equals(Object o)
Compares this instance with the specified object and indicates if they
are equal.
|
void
|
finalize()
Is called before the object's memory is being reclaimed by the VM.
|
final
Class<? extends Object>
|
getClass()
Returns the unique instance of Class which represents this
object's class.
|
int
|
hashCode()
Returns an integer hash code for this object.
|
final
void
|
notify()
Causes a thread which is waiting on this object's monitor (by means of
calling one of the wait() methods) to be woken up.
|
final
void
|
notifyAll()
Causes all threads which are waiting on this object's monitor (by means
of calling one of the wait() methods) to be woken up.
|
String
|
toString()
Returns a string containing a concise, human-readable description of this
object.
|
final
void
|
wait(long millis, int nanos)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
final
void
|
wait(long millis)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
final
void
|
wait()
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.
|
|
From interface org.xml.sax.Locator
abstract
int
|
getColumnNumber()
Return the column number where the current document event ends.
|
abstract
int
|
getLineNumber()
Return the line number where the current document event ends.
|
abstract
String
|
getPublicId()
Return the public identifier for the current document event.
|
abstract
String
|
getSystemId()
Return the system identifier for the current document event.
|
|
From interface org.xml.sax.ext.Locator2
|
Public Constructors
public
Locator2Impl
()
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.
public
Locator2Impl
(Locator 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 Methods
public
String
getEncoding
()
Returns the current value of the encoding property.
Returns
- the current value of the encoding property.
public
String
getXMLVersion
()
Returns the current value of the version property.
Returns
- the current value of the version property.
public
void
setEncoding
(String encoding)
Assigns the current value of the encoding property.
Parameters
encoding
| the new "encoding" value |
public
void
setXMLVersion
(String version)
Assigns the current value of the version property.
Parameters
version
| the new "version" value |