com.cybozu.labs.langdetect.util

## Class TagExtractor

- java.lang.Object
- - com.cybozu.labs.langdetect.util.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.
  Author:
    Nakatani Shuyo

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `(package private) java.lang.StringBuffer` | `buf_`
    `(package private) java.lang.String` | `tag_`
    `(package private) java.lang.String` | `target_`
    `(package private) int` | `threshold_`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `TagExtractor(java.lang.String tag, int threshold)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `add(java.lang.String line)`
    `void` | `clear()`
    `java.lang.String` | `closeTag()`
    `int` | `count()`
    `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.StringBuffer buf_

    - #### tag_

          java.lang.String tag_

  - ### 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 java.lang.String closeTag()