Class TagExtractor


  • public class TagExtractor
    extends java.lang.Object
    TagExtractor is a class which extracts inner texts of specified tag. Users don't use this class directly.
    • Constructor Summary

      Constructors 
      Constructor Description
      TagExtractor​(java.lang.String tag, int threshold)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(java.lang.String line)  
      void clear()  
      void closeTag​(LangProfile profile)  
      int count()  
      private boolean isSpace()  
      void setTag​(java.lang.String tag)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • target_

        java.lang.String target_
      • threshold_

        int threshold_
      • buf_

        java.lang.StringBuilder buf_
      • tag_

        java.lang.String tag_
      • count_

        private int count_
    • Constructor Detail

      • TagExtractor

        public TagExtractor​(java.lang.String tag,
                            int threshold)
    • Method Detail

      • count

        public int count()
      • clear

        public void clear()
      • setTag

        public void setTag​(java.lang.String tag)
      • add

        public void add​(java.lang.String line)
      • closeTag

        public void closeTag​(LangProfile profile)
      • isSpace

        private boolean isSpace()