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 int
private short
private SequenceModel
private CharsetProber
static final int
static final float
static final int
static final int
static final float
private boolean
static final int
static final int
private int[]
private CharsetProber.ProbingState
static final int
private int
private int
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
ConstructorsConstructorDescriptionSingleByteCharsetProber
(SequenceModel model, boolean reversed, CharsetProber nameProber) -
Method Summary
Modifier and TypeMethodDescriptionfloat
getState()
handleData
(byte[] buf, int offset, int length) (package private) boolean
final void
reset()
void
Methods inherited from class org.mozilla.universalchardet.prober.CharsetProber
filterWithEnglishLetters, filterWithoutEnglishLetters, isActive, setActive
-
Field Details
-
SAMPLE_SIZE
public static final int SAMPLE_SIZE- See Also:
-
SB_ENOUGH_REL_THRESHOLD
public static final int SB_ENOUGH_REL_THRESHOLD- See Also:
-
POSITIVE_SHORTCUT_THRESHOLD
public static final float POSITIVE_SHORTCUT_THRESHOLD- See Also:
-
NEGATIVE_SHORTCUT_THRESHOLD
public static final float NEGATIVE_SHORTCUT_THRESHOLD- See Also:
-
SYMBOL_CAT_ORDER
public static final int SYMBOL_CAT_ORDER- See Also:
-
NUMBER_OF_SEQ_CAT
public static final int NUMBER_OF_SEQ_CAT- See Also:
-
POSITIVE_CAT
public static final int POSITIVE_CAT- See Also:
-
NEGATIVE_CAT
public static final int NEGATIVE_CAT- See Also:
-
state
-
model
-
reversed
private boolean reversed -
lastOrder
private short lastOrder -
totalSeqs
private int totalSeqs -
seqCounters
private int[] seqCounters -
totalChar
private int totalChar -
freqChar
private int freqChar -
nameProber
-
-
Constructor Details
-
SingleByteCharsetProber
-
SingleByteCharsetProber
-
-
Method Details
-
keepEnglishLetters
boolean keepEnglishLetters() -
getCharSetName
- Specified by:
getCharSetName
in classCharsetProber
-
getConfidence
public float getConfidence()- Specified by:
getConfidence
in classCharsetProber
-
getState
- Specified by:
getState
in classCharsetProber
-
handleData
- Specified by:
handleData
in classCharsetProber
-
reset
public final void reset()- Specified by:
reset
in classCharsetProber
-
setOption
public void setOption()- Specified by:
setOption
in classCharsetProber
-