Class SingleByteCharsetProber
java.lang.Object
org.mozilla.universalchardet.prober.CharsetProber
org.mozilla.universalchardet.prober.SingleByteCharsetProber
-
Nested Class Summary
Nested classes/interfaces inherited from class org.mozilla.universalchardet.prober.CharsetProber
CharsetProber.ProbingState -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate shortprivate final SequenceModelprivate final CharsetProber(package private) static final int(package private) static final float(package private) static final int(package private) static final int(package private) static final floatprivate final boolean(package private) static final int(package private) static final intprivate final int[]private CharsetProber.ProbingState(package private) static final intprivate intprivate intFields 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
ConstructorsConstructorDescriptionSingleByteCharsetProber(SequenceModel model, boolean reversed, CharsetProber nameProber) -
Method Summary
Modifier and TypeMethodDescriptionfloatgetState()handleData(byte[] buf, int offset, int length) (package private) booleanvoidreset()voidMethods inherited from class org.mozilla.universalchardet.prober.CharsetProber
filterWithEnglishLetters, filterWithoutEnglishLetters
-
Field Details
-
SAMPLE_SIZE
static final int SAMPLE_SIZE- See Also:
-
SB_ENOUGH_REL_THRESHOLD
static final int SB_ENOUGH_REL_THRESHOLD- See Also:
-
POSITIVE_SHORTCUT_THRESHOLD
static final float POSITIVE_SHORTCUT_THRESHOLD- See Also:
-
NEGATIVE_SHORTCUT_THRESHOLD
static final float NEGATIVE_SHORTCUT_THRESHOLD- See Also:
-
SYMBOL_CAT_ORDER
static final int SYMBOL_CAT_ORDER- See Also:
-
NUMBER_OF_SEQ_CAT
static final int NUMBER_OF_SEQ_CAT- See Also:
-
POSITIVE_CAT
static final int POSITIVE_CAT- See Also:
-
NEGATIVE_CAT
static final int NEGATIVE_CAT- See Also:
-
state
-
model
-
reversed
private final boolean reversed -
lastOrder
private short lastOrder -
totalSeqs
private int totalSeqs -
seqCounters
private final int[] seqCounters -
totalChar
private int totalChar -
freqChar
private int freqChar -
nameProber
-
-
Constructor Details
-
SingleByteCharsetProber
SingleByteCharsetProber(SequenceModel model) -
SingleByteCharsetProber
-
-
Method Details
-
keepEnglishLetters
boolean keepEnglishLetters() -
getCharSetName
- Specified by:
getCharSetNamein classCharsetProber
-
getConfidence
public float getConfidence()- Specified by:
getConfidencein classCharsetProber
-
getState
- Specified by:
getStatein classCharsetProber
-
handleData
- Specified by:
handleDatain classCharsetProber
-
reset
public void reset()- Specified by:
resetin classCharsetProber
-
setOption
public void setOption()- Specified by:
setOptionin classCharsetProber
-