Class TagExtractor
- java.lang.Object
-
- com.optimaize.langdetect.cybozu.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.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.StringBuilder
buf_
private int
count_
(package private) java.lang.String
tag_
(package private) java.lang.String
target_
private static TextObjectFactory
textObjectFactory
(package private) int
threshold_
-
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)
-
-
-
Field Detail
-
textObjectFactory
private static final TextObjectFactory textObjectFactory
-
target_
java.lang.String target_
-
threshold_
int threshold_
-
buf_
java.lang.StringBuilder buf_
-
tag_
java.lang.String tag_
-
count_
private int count_
-
-
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()
-
-