Class NodeRemover

    • Method Detail

      • getInstance

        public static NodeRemover getInstance()
      • handleNode

        public void handleNode​(NodeHandler parent,
                               org.jsoup.nodes.Element node,
                               DocumentConverter converter)
        Description copied from interface: NodeHandler
        Handles an HTML Element node. This is where most of the work is done. Which NodeHandler is used is based on the tagName of the element.
        Specified by:
        handleNode in interface NodeHandler
        Parameters:
        parent - The previous node walker, in case we just want to remove an element.
        node - Node to handle
        converter - Parent converter for this object.
      • handleTextNode

        public void handleTextNode​(org.jsoup.nodes.TextNode node,
                                   DocumentConverter converter)
        Description copied from interface: NodeHandler
        Handle a child text node.
        Specified by:
        handleTextNode in interface NodeHandler
        Parameters:
        node - Node to handle
        converter - Parent converter for this object.
      • handleIgnoredHTMLElement

        public void handleIgnoredHTMLElement​(org.jsoup.nodes.Element node,
                                             DocumentConverter converter)
        Description copied from interface: NodeHandler
        Handle an ignored HTMLElement.
        Specified by:
        handleIgnoredHTMLElement in interface NodeHandler
        Parameters:
        node - Node to handle
        converter - Parent converter for this object.