Class UTF8Prober
java.lang.Object
org.mozilla.universalchardet.prober.CharsetProber
org.mozilla.universalchardet.prober.UTF8Prober
-
Nested Class Summary
Nested classes/interfaces inherited from class org.mozilla.universalchardet.prober.CharsetProber
CharsetProber.ProbingState -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CodingStateMachineprivate int(package private) static final floatprivate static final SMModelprivate CharsetProber.ProbingStateFields inherited from class org.mozilla.universalchardet.prober.CharsetProber
ASCII_A, ASCII_A_CAPITAL, ASCII_GT, ASCII_LT, ASCII_SP, ASCII_Z, ASCII_Z_CAPITAL, SHORTCUT_THRESHOLD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatgetState()handleData(byte[] buf, int offset, int length) voidreset()voidMethods inherited from class org.mozilla.universalchardet.prober.CharsetProber
filterWithEnglishLetters, filterWithoutEnglishLetters
-
Field Details
-
ONE_CHAR_PROB
static final float ONE_CHAR_PROB- See Also:
-
codingSM
-
state
-
numOfMBChar
private int numOfMBChar -
smModel
-
-
Constructor Details
-
UTF8Prober
UTF8Prober()
-
-
Method Details
-
getCharSetName
- Specified by:
getCharSetNamein classCharsetProber
-
handleData
- Specified by:
handleDatain classCharsetProber
-
getState
- Specified by:
getStatein classCharsetProber
-
reset
public void reset()- Specified by:
resetin classCharsetProber
-
getConfidence
public float getConfidence()- Specified by:
getConfidencein classCharsetProber
-
setOption
public void setOption()- Specified by:
setOptionin classCharsetProber
-