Class KeyHandler

    • Constructor Detail

      • KeyHandler

        public KeyHandler​(RootHandler rootHandler,
                          ItemHandler itemHandler)
        Creates a new handler.
        Parameters:
        rootHandler - the root handler.
        itemHandler - the item handler.
    • Method Detail

      • characters

        public void characters​(char[] ch,
                               int start,
                               int length)
        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.
      • getCurrentText

        protected String getCurrentText()
        Returns the current text of the textbuffer.
        Returns:
        The current text.
      • clearCurrentText

        protected void clearCurrentText()
        Removes all text from the textbuffer at the end of a CDATA section.