Package org.jfree.xml.parser.coretypes
Class ListReadHandler
java.lang.Object
org.jfree.xml.parser.AbstractXmlReadHandler
org.jfree.xml.parser.coretypes.ListReadHandler
- All Implemented Interfaces:
XmlReadHandler
A SAX handler for reading a list from an XML element.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Parsing is finished.protected XmlReadHandler
getHandlerForChild
(String tagName, Attributes atts) Gets a handler for a child.Returns the object under construction.protected void
startParsing
(Attributes attrs) Start parsing.Methods inherited from class org.jfree.xml.parser.AbstractXmlReadHandler
characters, endElement, getRootHandler, getTagName, init, startElement
-
Constructor Details
-
ListReadHandler
public ListReadHandler()Default constructor.
-
-
Method Details
-
startParsing
Start parsing.- Overrides:
startParsing
in classAbstractXmlReadHandler
- Parameters:
attrs
- the attributes.- Throws:
SAXException
- if there is a parsing error.
-
getHandlerForChild
protected XmlReadHandler getHandlerForChild(String tagName, Attributes atts) throws XmlReaderException, SAXException Gets a handler for a child.- Overrides:
getHandlerForChild
in classAbstractXmlReadHandler
- Parameters:
tagName
- the tag name.atts
- the attributes.- Returns:
- A handler.
- Throws:
XmlReaderException
- if there is a problem with the reader.SAXException
- if there is a parsing error.
-
doneParsing
Parsing is finished.- Overrides:
doneParsing
in classAbstractXmlReadHandler
- Throws:
SAXException
- if there is a parsing error.XmlReaderException
- if there is a problem with the reader.
-
getObject
Returns the object under construction.- Returns:
- The list.
-