public abstract class AbstractXmlReadHandler extends Object implements XmlReadHandler
XmlReadHandler
. This class
takes care of all the delegation management.Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int length)
This method is called to process the character data between element tags.
|
void |
endElement(String uri,
String tagName)
This method is called at the end of an element.
|
Locator |
getLocator()
Returns the locator as provided by the XML parser.
|
RootXmlReadHandler |
getRootHandler()
Returns the root handler for the parsing.
|
String |
getTagName()
Returns the tag name.
|
String |
getUri()
Returns the uri of the element.
|
void |
init(RootXmlReadHandler rootHandler,
String uri,
String tagName)
Initialises the handler.
|
void |
startElement(String uri,
String tagName,
Attributes attrs)
This method is called at the start of an element.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getObject
public void init(RootXmlReadHandler rootHandler, String uri, String tagName) throws SAXException
init
in interface XmlReadHandler
rootHandler
- the root handler.tagName
- the tag name.uri
- the namespace uri.SAXException
- if an parser-error occured.public final void startElement(String uri, String tagName, Attributes attrs) throws SAXException
startElement
in interface XmlReadHandler
tagName
- the tag name.attrs
- the attributes.uri
- the namespace uri.SAXException
- if there is a parsing error.public void characters(char[] ch, int start, int length) throws SAXException
characters
in interface XmlReadHandler
ch
- the character buffer.start
- the start index.length
- the length.SAXException
- if there is a parsing error.public final void endElement(String uri, String tagName) throws SAXException
endElement
in interface XmlReadHandler
tagName
- the tag name.uri
- the namespace uri.SAXException
- if there is a parsing error.public String getTagName()
public String getUri()
public RootXmlReadHandler getRootHandler()
public Locator getLocator()