The LocatorImpl Class
LocatorImpl
is a
default implementation of the Locator
interface for the convenience of
parser writers. You probably won't need to use it directly.
Besides the constructors, it adds setter methods to set the public
ID, system ID, line number, and column number returned by the
getter methods declared in Locator
:
package org.xml.sax.helpers; public classLocatorImpl
implements Locator { publicLocatorImpl
( ); publicLocatorImpl
(Locatorlocator
); public StringgetPublicId
( ); public StringgetSystemId
( ); public intgetLineNumber
( ); public intgetColumnNumber
( ); public voidsetPublicId
(StringpublicID
); public voidsetSystemId
(StringsystemID
); public voidsetLineNumber
(intlineNumber
); public voidsetColumnNumber
(intcolumnNumber
); }