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 CodingStateMachine
private int
(package private) static final float
private static final SMModel
private CharsetProber.ProbingState
Fields 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 TypeMethodDescriptionfloat
getState()
handleData
(byte[] buf, int offset, int length) void
reset()
void
Methods 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:
getCharSetName
in classCharsetProber
-
handleData
- Specified by:
handleData
in classCharsetProber
-
getState
- Specified by:
getState
in classCharsetProber
-
reset
public void reset()- Specified by:
reset
in classCharsetProber
-
getConfidence
public float getConfidence()- Specified by:
getConfidence
in classCharsetProber
-
setOption
public void setOption()- Specified by:
setOption
in classCharsetProber
-