public class Locator2Impl extends LocatorImpl implements Locator2
Locator2
interface. This is not part of core-only SAX2 distributions.
Constructor | Description |
---|---|
Locator2Impl() |
Construct a new, empty Locator2Impl object. |
Locator2Impl |
Copy an existing Locator or Locator2 object. |
Modifier and Type | Method | Description |
---|---|---|
String |
getEncoding() |
Returns the current value of the encoding property. |
String |
getXMLVersion() |
Returns the current value of the version property. |
void |
setEncoding |
Assigns the current value of the encoding property. |
void |
setXMLVersion |
Assigns the current value of the version property. |
getColumnNumber, getLineNumber, getPublicId, getSystemId, setColumnNumber, setLineNumber, setPublicId, setSystemId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getColumnNumber, getLineNumber, getPublicId, getSystemId
public Locator2Impl()
public Locator2Impl(Locator locator)
locator
- The existing Locator object.public String getXMLVersion()
getXMLVersion
in interface Locator2
public String getEncoding()
getEncoding
in interface Locator2
public void setXMLVersion(String version)
version
- the new "version" valuepublic void setEncoding(String encoding)
encoding
- the new "encoding" value
© 1993, 2023, 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.
https://docs.oracle.com/en/java/javase/21/docs/api/java.xml/org/xml/sax/ext/Locator2Impl.html