Class Latin1Prober
- java.lang.Object
-
- org.mozilla.universalchardet.prober.CharsetProber
-
- org.mozilla.universalchardet.prober.Latin1Prober
-
public class Latin1Prober extends CharsetProber
Sonda para Latin-1.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.mozilla.universalchardet.prober.CharsetProber
CharsetProber.ProbingState
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static byte
ACO
(package private) static byte
ACV
(package private) static byte
ASC
(package private) static byte
ASO
(package private) static byte
ASS
(package private) static byte
ASV
(package private) static int
CLASS_NUM
(package private) static int
FREQ_CAT_NUM
private int[]
freqCounter
private byte
lastCharClass
private static byte[]
latin1CharToClass
private static byte[]
latin1ClassModel
(package private) static byte
OTH
private CharsetProber.ProbingState
state
(package private) static byte
UDF
-
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 Constructor Description Latin1Prober()
Construye una sonda para Latin-1.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getCharSetName()
float
getConfidence()
CharsetProber.ProbingState
getState()
CharsetProber.ProbingState
handleData(byte[] buf, int offset, int length)
void
reset()
void
setOption()
-
Methods inherited from class org.mozilla.universalchardet.prober.CharsetProber
filterWithEnglishLetters, filterWithoutEnglishLetters
-
-
-
-
Field Detail
-
UDF
static final byte UDF
- See Also:
- Constant Field Values
-
OTH
static final byte OTH
- See Also:
- Constant Field Values
-
ASC
static final byte ASC
- See Also:
- Constant Field Values
-
ASS
static final byte ASS
- See Also:
- Constant Field Values
-
ACV
static final byte ACV
- See Also:
- Constant Field Values
-
ACO
static final byte ACO
- See Also:
- Constant Field Values
-
ASV
static final byte ASV
- See Also:
- Constant Field Values
-
ASO
static final byte ASO
- See Also:
- Constant Field Values
-
CLASS_NUM
static final int CLASS_NUM
- See Also:
- Constant Field Values
-
FREQ_CAT_NUM
static final int FREQ_CAT_NUM
- See Also:
- Constant Field Values
-
state
private CharsetProber.ProbingState state
-
lastCharClass
private byte lastCharClass
-
freqCounter
private final int[] freqCounter
-
latin1CharToClass
private static final byte[] latin1CharToClass
-
latin1ClassModel
private static final byte[] latin1ClassModel
-
-
Method Detail
-
getCharSetName
public java.lang.String getCharSetName()
- Specified by:
getCharSetName
in classCharsetProber
-
getConfidence
public float getConfidence()
- Specified by:
getConfidence
in classCharsetProber
-
getState
public CharsetProber.ProbingState getState()
- Specified by:
getState
in classCharsetProber
-
handleData
public CharsetProber.ProbingState handleData(byte[] buf, int offset, int length)
- Specified by:
handleData
in classCharsetProber
-
reset
public void reset()
- Specified by:
reset
in classCharsetProber
-
setOption
public void setOption()
- Specified by:
setOption
in classCharsetProber
-
-