|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jfree.xml.parser.AbstractXmlReadHandler
public abstract class AbstractXmlReadHandler
A base class for implementing an XmlReadHandler.
| 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(String tagName)
This method is called at the end of an element. |
protected XmlReadHandler |
getHandlerForChild(String tagName,
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,
Attributes attrs)
This method is called at the start of an element. |
protected void |
startParsing(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 |
| Constructor Detail |
|---|
public AbstractXmlReadHandler()
| Method Detail |
|---|
public void init(RootXmlReadHandler rootHandler,
String tagName)
init in interface XmlReadHandlerrootHandler - the root handler.tagName - the tag name.
public final void startElement(String tagName,
Attributes attrs)
throws XmlReaderException,
SAXException
startElement in interface XmlReadHandlertagName - the tag name.attrs - the attributes.
SAXException - if there is a parsing error.
XmlReaderException - if there is a reader 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 tagName)
throws SAXException
endElement in interface XmlReadHandlertagName - the tag name.
SAXException - if there is a parsing error.
protected void startParsing(Attributes attrs)
throws SAXException,
XmlReaderException
attrs - the attributes.
SAXException - if there is a parsing error.
XmlReaderException - ?
protected void doneParsing()
throws SAXException,
XmlReaderException
SAXException - if there is a parsing error.
XmlReaderException - if there is a reader error.
protected XmlReadHandler getHandlerForChild(String tagName,
Attributes atts)
throws XmlReaderException,
SAXException
tagName - the tag name.atts - the attributes.
SAXException - if there is a parsing error.
XmlReaderException - if there is a reader error.public String getTagName()
public RootXmlReadHandler getRootHandler()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||