public class ListReadHandler extends AbstractXmlReadHandler
| Modifier and Type | Field and Description |
|---|---|
private java.util.ArrayList |
handlers
The handlers.
|
private java.lang.String |
listType
The type of list ('array-list', 'linked-list', 'stack', 'vector').
|
private java.util.List |
retval
The list under construction.
|
| Constructor and Description |
|---|
ListReadHandler()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
private java.util.List |
createList(int initialSize)
Creates a list.
|
protected void |
doneParsing()
Parsing is finished.
|
protected XmlReadHandler |
getHandlerForChild(java.lang.String tagName,
org.xml.sax.Attributes atts)
Gets a handler for a child.
|
java.lang.Object |
getObject()
Returns the object under construction.
|
protected void |
startParsing(org.xml.sax.Attributes attrs)
Start parsing.
|
characters, endElement, getRootHandler, getTagName, init, startElementprivate java.util.List retval
private java.util.ArrayList handlers
private java.lang.String listType
protected void startParsing(org.xml.sax.Attributes attrs)
throws org.xml.sax.SAXException
startParsing in class AbstractXmlReadHandlerattrs - the attributes.org.xml.sax.SAXException - if there is a parsing error.protected XmlReadHandler getHandlerForChild(java.lang.String tagName, org.xml.sax.Attributes atts) throws XmlReaderException, org.xml.sax.SAXException
getHandlerForChild in class AbstractXmlReadHandlertagName - the tag name.atts - the attributes.XmlReaderException - if there is a problem with the reader.org.xml.sax.SAXException - if there is a parsing error.protected void doneParsing()
throws org.xml.sax.SAXException,
XmlReaderException
doneParsing in class AbstractXmlReadHandlerorg.xml.sax.SAXException - if there is a parsing error.XmlReaderException - if there is a problem with the reader.private java.util.List createList(int initialSize)
initialSize - the initial size.public java.lang.Object getObject()