|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.xml.parser.AbstractXmlReadHandler
A base class for implementing an XmlReadHandler
.
Field Summary | |
protected RootXmlReadHandler |
rootHandler
The root handler. |
protected java.lang.String |
tagName
The tag name. |
Constructor Summary | |
AbstractXmlReadHandler()
Creates a new handler. |
Method Summary | |
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(java.lang.String tagName)
This method is called at the end of an element. |
protected XmlReadHandler |
getHandlerForChild(java.lang.String tagName,
org.xml.sax.Attributes atts)
Returns the handler for a child element. |
RootXmlReadHandler |
getRootHandler()
Returns the root handler for the parsing. |
java.lang.String |
getTagName()
Returns the tag name. |
void |
init(RootXmlReadHandler rootHandler,
java.lang.String tagName)
|
void |
startElement(java.lang.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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jfree.xml.parser.XmlReadHandler |
getObject |
Field Detail |
protected RootXmlReadHandler rootHandler
protected java.lang.String tagName
Constructor Detail |
public AbstractXmlReadHandler()
Method Detail |
public void init(RootXmlReadHandler rootHandler, java.lang.String tagName)
init
in interface XmlReadHandler
public final void startElement(java.lang.String tagName, org.xml.sax.Attributes attrs) throws XmlReaderException, org.xml.sax.SAXException
startElement
in interface XmlReadHandler
tagName
- the tag name.attrs
- the attributes.
org.xml.sax.SAXException
- if there is a parsing error.
XmlReaderException
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 tagName) throws org.xml.sax.SAXException
endElement
in interface XmlReadHandler
tagName
- 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
attrs
- the attributes.
org.xml.sax.SAXException
- if there is a parsing error.protected void doneParsing() throws org.xml.sax.SAXException, XmlReaderException
org.xml.sax.SAXException
- if there is a parsing error.
XmlReaderException
protected XmlReadHandler getHandlerForChild(java.lang.String tagName, org.xml.sax.Attributes atts) throws XmlReaderException, org.xml.sax.SAXException
tagName
- the tag name.
org.xml.sax.SAXException
- if there is a parsing error.
XmlReaderException
public java.lang.String getTagName()
public RootXmlReadHandler getRootHandler()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |