Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.xml.sax.helpers.LocatorImpl
org.xml.sax.ext.Locator2Impl
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.
Constructor Summary | |
| |
|
Method Summary | |
String |
|
String |
|
void |
|
void |
|
Methods inherited from class org.xml.sax.helpers.LocatorImpl | |
getColumnNumber , getLineNumber , getPublicId , getSystemId , setColumnNumber , setLineNumber , setPublicId , setSystemId |
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 String getEncoding()
Returns the current value of the encoding property.
- Specified by:
- getEncoding in interface Locator2
- See Also:
setEncoding(String)
public String getXMLVersion()
Returns the current value of the version property.
- Specified by:
- getXMLVersion in interface Locator2
- See Also:
setXMLVersion(String)
public void setEncoding(String encoding)
Assigns the current value of the encoding property.
- Parameters:
encoding
- the new "encoding" value