Class Overview
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.
Summary
Public Methods |
String
|
getEncoding()
Returns the current value of the encoding property.
|
String
|
getXMLVersion()
Returns the current value of the version property.
|
void
|
setEncoding(String encoding)
Assigns the current value of the encoding property.
|
void
|
setXMLVersion(String version)
Assigns the current value of the version property.
|
[Expand]
Inherited Methods |
From class
org.xml.sax.helpers.LocatorImpl
int
|
getColumnNumber()
Return the saved column number (1-based).
|
int
|
getLineNumber()
Return the saved line number (1-based).
|
String
|
getPublicId()
Return the saved public identifier.
|
String
|
getSystemId()
Return the saved system identifier.
|
void
|
setColumnNumber(int columnNumber)
Set the column number for this locator (1-based).
|
void
|
setLineNumber(int lineNumber)
Set the line number for this locator (1-based).
|
void
|
setPublicId(String publicId)
Set the public identifier for this locator.
|
void
|
setSystemId(String systemId)
Set the system identifier for this locator.
|
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
From interface
org.xml.sax.Locator
abstract
int
|
getColumnNumber()
Return the column number where the current document event ends.
|
abstract
int
|
getLineNumber()
Return the line number where the current document event ends.
|
abstract
String
|
getPublicId()
Return the public identifier for the current document event.
|
abstract
String
|
getSystemId()
Return the system identifier for the current document event.
|
|
From interface
org.xml.sax.ext.Locator2
abstract
String
|
getEncoding()
Returns the name of the character encoding for the entity.
|
abstract
String
|
getXMLVersion()
Returns the version of XML used for the entity.
|
|
Public Constructors
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 Methods
public
String
getEncoding
()
Returns the current value of the encoding property.
Returns
- Name of the character encoding being used to interpret
* the entity's text, or null if this was not provided for a *
character stream passed through an InputSource or is otherwise
not yet available in the current parsing state.
public
String
getXMLVersion
()
Returns the current value of the version property.
Returns
- Identifier for the XML version being used to interpret
the entity's text, or null if that information is not yet
available in the current parsing state.
public
void
setEncoding
(String encoding)
Assigns the current value of the encoding property.
Parameters
encoding
| the new "encoding" value |
public
void
setXMLVersion
(String version)
Assigns the current value of the version property.
Parameters
version
| the new "version" value |