public class Locator2Impl extends LocatorImpl implements Locator2
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.
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.
locator
- The existing Locator object.public String getXMLVersion()
Returns the current value of the version property.
getXMLVersion
in interface Locator2
setXMLVersion(java.lang.String)
public String getEncoding()
Returns the current value of the encoding property.
getEncoding
in interface Locator2
setEncoding(java.lang.String)
public void setXMLVersion(String version)
Assigns the current value of the version property.
version
- the new "version" valuegetXMLVersion()
public void setEncoding(String encoding)
Assigns the current value of the encoding property.
encoding
- the new "encoding" valuegetEncoding()
© 1993–2017, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.