APIdia Launch Partner
Top Description Fields Constructors Methods
org.xml.sax.ext

public Class Locator2Impl

extends LocatorImpl
implements Locator2
Class Inheritance
All Implemented Interfaces
org.xml.sax.ext.Locator2, org.xml.sax.Locator
Imports
org.xml.sax.Locator, org.xml.sax.helpers.LocatorImpl

SAX2 extension helper for holding additional Entity information, implementing the Locator2 interface.

This is not part of core-only SAX2 distributions.

Author
David Brownell
Since
1.5, SAX 2.0.2

Field Summary

Modifier and TypeField and Description
private String
private String

Constructor Summary

AccessConstructor and Description
public
Locator2Impl()

Construct a new, empty Locator2Impl object.

public
Locator2Impl(Locator
The existing Locator object.
locator
)

Copy an existing Locator or Locator2 object.

Method Summary

Modifier and TypeMethod and Description
public String
getEncoding()

Implements org.xml.sax.ext.Locator2.getEncoding.

Returns the current value of the encoding property.

public String
getXMLVersion()

Implements org.xml.sax.ext.Locator2.getXMLVersion.

Returns the current value of the version property.

public void
setEncoding(String
the new "encoding" value
encoding
)

Assigns the current value of the encoding property.

public void
setXMLVersion(String
the new "version" value
version
)

Assigns the current value of the version property.

Inherited from org.xml.sax.helpers.LocatorImpl:
getColumnNumbergetLineNumbergetPublicIdgetSystemIdsetColumnNumbersetLineNumbersetPublicIdsetSystemId

Field Detail

encodingback to summary
private String encoding
versionback to summary
private String version

Constructor Detail

Locator2Implback to summary
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.

Locator2Implback to summary
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:Locator

The existing Locator object.

Method Detail

getEncodingback to summary
public String getEncoding()

Implements org.xml.sax.ext.Locator2.getEncoding.

Returns the current value of the encoding property.

See Also
setEncoding
getXMLVersionback to summary
public String getXMLVersion()

Implements org.xml.sax.ext.Locator2.getXMLVersion.

Returns the current value of the version property.

See Also
setXMLVersion
setEncodingback to summary
public void setEncoding(String encoding)

Assigns the current value of the encoding property.

Parameters
encoding:String

the new "encoding" value

See Also
getEncoding
setXMLVersionback to summary
public void setXMLVersion(String version)

Assigns the current value of the version property.

Parameters
version:String

the new "version" value

See Also
getXMLVersion