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, waitgetObjectpublic void init(RootXmlReadHandler rootHandler, String uri, String tagName) throws SAXException
init in interface XmlReadHandlerrootHandler - 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 XmlReadHandlertagName - 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 XmlReadHandlerch - 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 XmlReadHandlertagName - 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()