Class TagExtractor
- java.lang.Object
-
- com.optimaize.langdetect.cybozu.util.TagExtractor
-
public class TagExtractor extends java.lang.ObjectTagExtractoris 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.StringBuilderbuf_private intcount_(package private) java.lang.Stringtag_(package private) java.lang.Stringtarget_private static TextObjectFactorytextObjectFactory(package private) intthreshold_
-
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 voidadd(java.lang.String line)voidclear()voidcloseTag(LangProfile profile)intcount()private booleanisSpace()voidsetTag(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()
-
-