Class NekoElementRemover

  • All Implemented Interfaces:
    org.apache.xerces.xni.parser.XMLComponent, org.apache.xerces.xni.parser.XMLDocumentFilter, org.apache.xerces.xni.parser.XMLDocumentSource, org.apache.xerces.xni.XMLDocumentHandler, org.cyberneko.html.HTMLComponent

    public class NekoElementRemover
    extends org.cyberneko.html.filters.ElementRemover
    • Field Summary

      • Fields inherited from class org.cyberneko.html.filters.ElementRemover

        fAcceptedElements, fElementDepth, fRemovalElementDepth, fRemovedElements, NULL
      • Fields inherited from class org.cyberneko.html.filters.DefaultFilter

        fDocumentHandler, fDocumentSource
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void comment​(org.apache.xerces.xni.XMLString text, org.apache.xerces.xni.Augmentations augs)  
      void endElement​(org.apache.xerces.xni.QName element, org.apache.xerces.xni.Augmentations augs)
      End element.
      void ignorableWhitespace​(org.apache.xerces.xni.XMLString text, org.apache.xerces.xni.Augmentations augs)  
      void processingInstruction​(String target, org.apache.xerces.xni.XMLString data, org.apache.xerces.xni.Augmentations augs)  
      • Methods inherited from class org.cyberneko.html.filters.ElementRemover

        acceptElement, characters, elementAccepted, elementRemoved, emptyElement, endCDATA, endGeneralEntity, endPrefixMapping, handleOpenTag, removeElement, startCDATA, startDocument, startDocument, startElement, startGeneralEntity, startPrefixMapping, textDecl
      • Methods inherited from class org.cyberneko.html.filters.DefaultFilter

        doctypeDecl, endDocument, getDocumentHandler, getDocumentSource, getFeatureDefault, getPropertyDefault, getRecognizedFeatures, getRecognizedProperties, merge, reset, setDocumentHandler, setDocumentSource, setFeature, setProperty, xmlDecl
    • Constructor Detail

      • NekoElementRemover

        public NekoElementRemover()
    • Method Detail

      • comment

        public void comment​(org.apache.xerces.xni.XMLString text,
                            org.apache.xerces.xni.Augmentations augs)
                     throws org.apache.xerces.xni.XNIException
        Specified by:
        comment in interface org.apache.xerces.xni.XMLDocumentHandler
        Overrides:
        comment in class org.cyberneko.html.filters.ElementRemover
        Throws:
        org.apache.xerces.xni.XNIException
      • ignorableWhitespace

        public void ignorableWhitespace​(org.apache.xerces.xni.XMLString text,
                                        org.apache.xerces.xni.Augmentations augs)
                                 throws org.apache.xerces.xni.XNIException
        Specified by:
        ignorableWhitespace in interface org.apache.xerces.xni.XMLDocumentHandler
        Overrides:
        ignorableWhitespace in class org.cyberneko.html.filters.ElementRemover
        Throws:
        org.apache.xerces.xni.XNIException
      • endElement

        public void endElement​(org.apache.xerces.xni.QName element,
                               org.apache.xerces.xni.Augmentations augs)
                        throws org.apache.xerces.xni.XNIException
        End element.
        Specified by:
        endElement in interface org.apache.xerces.xni.XMLDocumentHandler
        Overrides:
        endElement in class org.cyberneko.html.filters.ElementRemover
        Throws:
        org.apache.xerces.xni.XNIException
      • processingInstruction

        public void processingInstruction​(String target,
                                          org.apache.xerces.xni.XMLString data,
                                          org.apache.xerces.xni.Augmentations augs)
                                   throws org.apache.xerces.xni.XNIException
        Specified by:
        processingInstruction in interface org.apache.xerces.xni.XMLDocumentHandler
        Overrides:
        processingInstruction in class org.cyberneko.html.filters.ElementRemover
        Throws:
        org.apache.xerces.xni.XNIException