Class Latin1Prober
java.lang.Object
org.mozilla.universalchardet.prober.CharsetProber
org.mozilla.universalchardet.prober.Latin1Prober
Sonda para Latin-1.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.mozilla.universalchardet.prober.CharsetProber
CharsetProber.ProbingState
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final byte
(package private) static final byte
(package private) static final byte
(package private) static final byte
(package private) static final byte
(package private) static final byte
(package private) static final int
(package private) static final int
private final int[]
private byte
private static final byte[]
private static final byte[]
(package private) static final byte
private CharsetProber.ProbingState
(package private) static final byte
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
-
UDF
static final byte UDF- See Also:
-
OTH
static final byte OTH- See Also:
-
ASC
static final byte ASC- See Also:
-
ASS
static final byte ASS- See Also:
-
ACV
static final byte ACV- See Also:
-
ACO
static final byte ACO- See Also:
-
ASV
static final byte ASV- See Also:
-
ASO
static final byte ASO- See Also:
-
CLASS_NUM
static final int CLASS_NUM- See Also:
-
FREQ_CAT_NUM
static final int FREQ_CAT_NUM- See Also:
-
state
-
lastCharClass
private byte lastCharClass -
freqCounter
private final int[] freqCounter -
latin1CharToClass
private static final byte[] latin1CharToClass -
latin1ClassModel
private static final byte[] latin1ClassModel
-
-
Constructor Details
-
Latin1Prober
public Latin1Prober()Construye una sonda para Latin-1.
-
-
Method Details
-
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 void reset()- Specified by:
reset
in classCharsetProber
-
setOption
public void setOption()- Specified by:
setOption
in classCharsetProber
-