public abstract class AbstractXmlReadHandler extends java.lang.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(java.lang.String uri,
java.lang.String tagName)
This method is called at the end of an element.
|
org.xml.sax.Locator |
getLocator()
Returns the locator as provided by the XML parser.
|
RootXmlReadHandler |
getRootHandler()
Returns the root handler for the parsing.
|
java.lang.String |
getTagName()
Returns the tag name.
|
java.lang.String |
getUri()
Returns the uri of the element.
|
void |
init(RootXmlReadHandler rootHandler,
java.lang.String uri,
java.lang.String tagName)
Initialises the handler.
|
void |
startElement(java.lang.String uri,
java.lang.String tagName,
org.xml.sax.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, java.lang.String uri, java.lang.String tagName)
init
in interface XmlReadHandler
rootHandler
- the root handler.tagName
- the tag name.uri
- the namespace uri.public final void startElement(java.lang.String uri, java.lang.String tagName, org.xml.sax.Attributes attrs) throws org.xml.sax.SAXException
startElement
in interface XmlReadHandler
tagName
- the tag name.attrs
- the attributes.uri
- the namespace uri.org.xml.sax.SAXException
- if there is a parsing error.public void characters(char[] ch, int start, int length) throws org.xml.sax.SAXException
characters
in interface XmlReadHandler
ch
- the character buffer.start
- the start index.length
- the length.org.xml.sax.SAXException
- if there is a parsing error.public final void endElement(java.lang.String uri, java.lang.String tagName) throws org.xml.sax.SAXException
endElement
in interface XmlReadHandler
tagName
- the tag name.uri
- the namespace uri.org.xml.sax.SAXException
- if there is a parsing error.public java.lang.String getTagName()
public java.lang.String getUri()
public RootXmlReadHandler getRootHandler()
public org.xml.sax.Locator getLocator()