Class MarkupTagAction

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean isBlockLevel  
      private java.util.LinkedList<java.util.List<java.lang.String>> labelStack  
      private static java.util.regex.Pattern PAT_NUM  
    • Constructor Summary

      Constructors 
      Constructor Description
      MarkupTagAction​(boolean isBlockLevel)  
    • Field Detail

      • isBlockLevel

        private final boolean isBlockLevel
      • labelStack

        private java.util.LinkedList<java.util.List<java.lang.String>> labelStack
      • PAT_NUM

        private static final java.util.regex.Pattern PAT_NUM
    • Constructor Detail

      • MarkupTagAction

        public MarkupTagAction​(boolean isBlockLevel)
    • Method Detail

      • start

        public boolean start​(BoilerpipeHTMLContentHandler instance,
                             java.lang.String localName,
                             java.lang.String qName,
                             org.xml.sax.Attributes atts)
                      throws org.xml.sax.SAXException
        Specified by:
        start in interface TagAction
        Throws:
        org.xml.sax.SAXException
      • end

        public boolean end​(BoilerpipeHTMLContentHandler instance,
                           java.lang.String localName,
                           java.lang.String qName)
                    throws org.xml.sax.SAXException
        Specified by:
        end in interface TagAction
        Throws:
        org.xml.sax.SAXException
      • getAncestorLabels

        private java.util.Set<java.lang.String> getAncestorLabels()