org.jfree.xml.parser
Interface XmlReadHandler

All Known Implementing Classes:
AbstractXmlReadHandler

public interface XmlReadHandler

A handler for reading an XML element.


Method Summary
 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 tagName)
          This method is called at the end of an element.
 java.lang.Object getObject()
          Returns the object for this element.
 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.
 

Method Detail

startElement

public void startElement(java.lang.String tagName,
                         org.xml.sax.Attributes attrs)
                  throws org.xml.sax.SAXException,
                         XmlReaderException
This method is called at the start of an element.

Parameters:
tagName - the tag name.
attrs - the attributes.
Throws:
org.xml.sax.SAXException - if there is a parsing error.
XmlReaderException

characters

public void characters(char[] ch,
                       int start,
                       int length)
                throws org.xml.sax.SAXException
This method is called to process the character data between element tags.

Parameters:
ch - the character buffer.
start - the start index.
length - the length.
Throws:
org.xml.sax.SAXException - if there is a parsing error.

endElement

public void endElement(java.lang.String tagName)
                throws org.xml.sax.SAXException,
                       XmlReaderException
This method is called at the end of an element.

Parameters:
tagName - the tag name.
Throws:
org.xml.sax.SAXException - if there is a parsing error.
XmlReaderException

getObject

public java.lang.Object getObject()
                           throws XmlReaderException
Returns the object for this element.

Returns:
the object.
Throws:
XmlReaderException - if there is a parsing error.

init

public void init(RootXmlReadHandler rootHandler,
                 java.lang.String tagName)