public abstract class AbstractXmlReadHandler extends Object implements XmlReadHandler
XmlReadHandler.| Constructor and Description |
|---|
AbstractXmlReadHandler()
Creates a new handler.
|
| 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.
|
protected void |
doneParsing()
Done parsing.
|
void |
endElement(String tagName)
This method is called at the end of an element.
|
protected XmlReadHandler |
getHandlerForChild(String tagName,
org.xml.sax.Attributes atts)
Returns the handler for a child element.
|
RootXmlReadHandler |
getRootHandler()
Returns the root handler for the parsing.
|
String |
getTagName()
Returns the tag name.
|
void |
init(RootXmlReadHandler rootHandler,
String tagName)
Initialises the handler.
|
void |
startElement(String tagName,
org.xml.sax.Attributes attrs)
This method is called at the start of an element.
|
protected void |
startParsing(org.xml.sax.Attributes attrs)
Starts parsing.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetObjectpublic void init(RootXmlReadHandler rootHandler, String tagName)
init in interface XmlReadHandlerrootHandler - the root handler.tagName - the tag name.public final void startElement(String tagName, org.xml.sax.Attributes attrs) throws XmlReaderException, org.xml.sax.SAXException
startElement in interface XmlReadHandlertagName - the tag name.attrs - the attributes.org.xml.sax.SAXException - if there is a parsing error.XmlReaderException - if there is a reader error.public void characters(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
characters in interface XmlReadHandlerch - the character buffer.start - the start index.length - the length.org.xml.sax.SAXException - if there is a parsing error.public final void endElement(String tagName) throws org.xml.sax.SAXException
endElement in interface XmlReadHandlertagName - the tag name.org.xml.sax.SAXException - if there is a parsing error.protected void startParsing(org.xml.sax.Attributes attrs)
throws org.xml.sax.SAXException,
XmlReaderException
attrs - the attributes.org.xml.sax.SAXException - if there is a parsing error.XmlReaderException - ?protected void doneParsing()
throws org.xml.sax.SAXException,
XmlReaderException
org.xml.sax.SAXException - if there is a parsing error.XmlReaderException - if there is a reader error.protected XmlReadHandler getHandlerForChild(String tagName, org.xml.sax.Attributes atts) throws XmlReaderException, org.xml.sax.SAXException
tagName - the tag name.atts - the attributes.org.xml.sax.SAXException - if there is a parsing error.XmlReaderException - if there is a reader error.public String getTagName()
public RootXmlReadHandler getRootHandler()
Copyright © 2001-2014 JFree.org. All Rights Reserved.