Locator2Implpublic class Locator2Impl extends LocatorImpl implements Locator2SAX2 extension helper for holding additional Entity information,
implementing the {@link 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. |
Fields Summary |
---|
private String | encoding | private String | version |
Constructors Summary |
---|
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.
super (locator);
if (locator instanceof Locator2) {
Locator2 l2 = (Locator2) locator;
version = l2.getXMLVersion ();
encoding = l2.getEncoding ();
}
|
Methods Summary |
---|
public java.lang.String | getEncoding()Returns the current value of the encoding property. return encoding;
| public java.lang.String | getXMLVersion()Returns the current value of the version property. return version;
| public void | setEncoding(java.lang.String encoding)Assigns the current value of the encoding property. this.encoding = encoding;
| public void | setXMLVersion(java.lang.String version)Assigns the current value of the version property. this.version = version;
|
|