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 byteACO(package private) static byteACV(package private) static byteASC(package private) static byteASO(package private) static byteASS(package private) static byteASV(package private) static intCLASS_NUM(package private) static intFREQ_CAT_NUMprivate int[]freqCounterprivate bytelastCharClassprivate static byte[]latin1CharToClassprivate static byte[]latin1ClassModel(package private) static byteOTHprivate CharsetProber.ProbingStatestate(package private) static byteUDF-
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.StringgetCharSetName()floatgetConfidence()CharsetProber.ProbingStategetState()CharsetProber.ProbingStatehandleData(byte[] buf, int offset, int length)voidreset()voidsetOption()-
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:
getCharSetNamein classCharsetProber
-
getConfidence
public float getConfidence()
- Specified by:
getConfidencein classCharsetProber
-
getState
public CharsetProber.ProbingState getState()
- Specified by:
getStatein classCharsetProber
-
handleData
public CharsetProber.ProbingState handleData(byte[] buf, int offset, int length)
- Specified by:
handleDatain classCharsetProber
-
reset
public void reset()
- Specified by:
resetin classCharsetProber
-
setOption
public void setOption()
- Specified by:
setOptionin classCharsetProber
-
-