Class Latin1Prober
- java.lang.Object
-
- org.mozilla.universalchardet.prober.CharsetProber
-
- org.mozilla.universalchardet.prober.Latin1Prober
-
public class Latin1Prober extends CharsetProber
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.mozilla.universalchardet.prober.CharsetProber
CharsetProber.ProbingState
-
-
Field Summary
Fields Modifier and Type Field Description static byteACOstatic byteACVstatic byteASCstatic byteASOstatic byteASSstatic byteASVstatic intCLASS_NUMstatic intFREQ_CAT_NUMprivate int[]freqCounterprivate bytelastCharClassprivate static byte[]latin1CharToClassprivate static byte[]latin1ClassModelstatic byteOTHprivate CharsetProber.ProbingStatestatestatic 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()
-
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, isActive, setActive
-
-
-
-
Field Detail
-
UDF
public static final byte UDF
- See Also:
- Constant Field Values
-
OTH
public static final byte OTH
- See Also:
- Constant Field Values
-
ASC
public static final byte ASC
- See Also:
- Constant Field Values
-
ASS
public static final byte ASS
- See Also:
- Constant Field Values
-
ACV
public static final byte ACV
- See Also:
- Constant Field Values
-
ACO
public static final byte ACO
- See Also:
- Constant Field Values
-
ASV
public static final byte ASV
- See Also:
- Constant Field Values
-
ASO
public static final byte ASO
- See Also:
- Constant Field Values
-
CLASS_NUM
public static final int CLASS_NUM
- See Also:
- Constant Field Values
-
FREQ_CAT_NUM
public static final int FREQ_CAT_NUM
- See Also:
- Constant Field Values
-
latin1CharToClass
private static final byte[] latin1CharToClass
-
latin1ClassModel
private static final byte[] latin1ClassModel
-
state
private CharsetProber.ProbingState state
-
lastCharClass
private byte lastCharClass
-
freqCounter
private int[] freqCounter
-
-
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 final void reset()
- Specified by:
resetin classCharsetProber
-
setOption
public void setOption()
- Specified by:
setOptionin classCharsetProber
-
-