Package org.jfree.xml.parser
Interface XmlReadHandler
- All Known Implementing Classes:
AbstractXmlReadHandler
,Base64ReadHandler
,BasicStrokeReadHandler
,ColorReadHandler
,FontReadHandler
,GenericReadHandler
,GradientPaintReadHandler
,InsetsReadHandler
,ListReadHandler
,NullReadHandler
,ObjectRefHandler
,Point2DReadHandler
,Rectangle2DReadHandler
,RenderingHintsReadHandler
,RenderingHintValueReadHandler
,StringReadHandler
public interface XmlReadHandler
A handler for reading an XML element.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
characters
(char[] ch, int start, int length) This method is called to process the character data between element tags.void
endElement
(String tagName) This method is called at the end of an element.Returns the object for this element or null, if this element does not create an object.void
init
(RootXmlReadHandler rootHandler, String tagName) Initialise.void
startElement
(String tagName, Attributes attrs) This method is called at the start of an element.
-
Method Details
-
startElement
This method is called at the start of an element.- Parameters:
tagName
- the tag name.attrs
- the attributes.- Throws:
SAXException
- if there is a parsing error.XmlReaderException
- if there is a reader error.
-
characters
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:
SAXException
- if there is a parsing error.
-
endElement
This method is called at the end of an element.- Parameters:
tagName
- the tag name.- Throws:
SAXException
- if there is a parsing error.XmlReaderException
- if there is a reader error.
-
getObject
Returns the object for this element or null, if this element does not create an object.- Returns:
- the object.
- Throws:
XmlReaderException
- if there is a parsing error.
-
init
Initialise.- Parameters:
rootHandler
- the root handler.tagName
- the tag name.
-