Class ListReadHandler

    • Field Summary

      Fields 
      Modifier and Type Field 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 Summary

      Constructors 
      Constructor Description
      ListReadHandler()
      Default constructor.
    • Field Detail

      • retval

        private java.util.List retval
        The list under construction.
      • handlers

        private java.util.ArrayList handlers
        The handlers.
      • listType

        private java.lang.String listType
        The type of list ('array-list', 'linked-list', 'stack', 'vector').
    • Constructor Detail

      • ListReadHandler

        public ListReadHandler()
        Default constructor.
    • Method Detail

      • startParsing

        protected void startParsing​(org.xml.sax.Attributes attrs)
                             throws org.xml.sax.SAXException
        Start parsing.
        Overrides:
        startParsing in class AbstractXmlReadHandler
        Parameters:
        attrs - the attributes.
        Throws:
        org.xml.sax.SAXException - if there is a parsing error.
      • getHandlerForChild

        protected XmlReadHandler getHandlerForChild​(java.lang.String tagName,
                                                    org.xml.sax.Attributes atts)
                                             throws XmlReaderException,
                                                    org.xml.sax.SAXException
        Gets a handler for a child.
        Overrides:
        getHandlerForChild in class AbstractXmlReadHandler
        Parameters:
        tagName - the tag name.
        atts - the attributes.
        Returns:
        A handler.
        Throws:
        XmlReaderException - if there is a problem with the reader.
        org.xml.sax.SAXException - if there is a parsing error.
      • createList

        private java.util.List createList​(int initialSize)
        Creates a list.
        Parameters:
        initialSize - the initial size.
        Returns:
        A new list.
      • getObject

        public java.lang.Object getObject()
        Returns the object under construction.
        Returns:
        The list.