Class RootHandler

    • Constructor Detail

      • RootHandler

        public RootHandler()
        Creates a new handler.
    • Method Detail

      • getSubHandlers

        public Stack getSubHandlers()
        Returns the stack of sub handlers.
        Returns:
        The sub-handler stack.
      • characters

        public void characters​(char[] ch,
                               int start,
                               int length)
                        throws SAXException
        Receives some (or all) of the text in the current element.
        Specified by:
        characters in interface ContentHandler
        Overrides:
        characters in class DefaultHandler
        Parameters:
        ch - character buffer.
        start - the start index.
        length - the length of the valid character data.
        Throws:
        SAXException - for errors.
      • getCurrentHandler

        public DefaultHandler getCurrentHandler()
        Returns the handler at the top of the stack.
        Returns:
        The handler.
      • pushSubHandler

        public void pushSubHandler​(DefaultHandler subhandler)
        Pushes a sub-handler onto the stack.
        Parameters:
        subhandler - the sub-handler.
      • popSubHandler

        public DefaultHandler popSubHandler()
        Pops a sub-handler from the stack.
        Returns:
        The sub-handler.