This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


org.xml.sax.ext
class Locator2Impl

java.lang.Object extended by org.xml.sax.helpers.LocatorImpl extended by org.xml.sax.ext.Locator2Impl
All Implemented Interfaces:
Locator, Locator2

public class Locator2Impl
extends LocatorImpl
implements Locator2

SAX2 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.


Constructor Summary

          Construct a new, empty Locator2Impl object.

          Copy an existing Locator or Locator2 object.
 
Method Summary
 String

          Returns the current value of the encoding property.
 String

          Returns the current value of the version property.
 void
setEncoding(String encoding)

          Assigns the current value of the encoding property.
 void

          Assigns the current value of the version property.
 
Methods inherited from class org.xml.sax.helpers.LocatorImpl
getColumnNumber, getLineNumber, getPublicId, getSystemId, setColumnNumber, setLineNumber, setPublicId, setSystemId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Locator2Impl

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.


Locator2Impl

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.
Method Detail

getEncoding

public String getEncoding()
Returns the current value of the encoding property.


getXMLVersion

public String getXMLVersion()
Returns the current value of the version property.


setEncoding

public void setEncoding(String encoding)
Assigns the current value of the encoding property.

Parameters:
encoding - the new "encoding" value

setXMLVersion

public void setXMLVersion(String version)
Assigns the current value of the version property.

Parameters:
version - the new "version" value


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.