org.mozilla.universalchardet.prober
Class SingleByteCharsetProber

java.lang.Object
  extended by org.mozilla.universalchardet.prober.CharsetProber
      extended by org.mozilla.universalchardet.prober.SingleByteCharsetProber

public class SingleByteCharsetProber
extends CharsetProber


Nested Class Summary
 
Nested classes/interfaces inherited from class org.mozilla.universalchardet.prober.CharsetProber
CharsetProber.ProbingState
 
Field Summary
static int NEGATIVE_CAT
           
static float NEGATIVE_SHORTCUT_THRESHOLD
           
static int NUMBER_OF_SEQ_CAT
           
static int POSITIVE_CAT
           
static float POSITIVE_SHORTCUT_THRESHOLD
           
static int SAMPLE_SIZE
           
static int SB_ENOUGH_REL_THRESHOLD
           
static int SYMBOL_CAT_ORDER
           
 
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
SingleByteCharsetProber(SequenceModel model)
           
SingleByteCharsetProber(SequenceModel model, boolean reversed, CharsetProber nameProber)
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SAMPLE_SIZE

public static final int SAMPLE_SIZE
See Also:
Constant Field Values

SB_ENOUGH_REL_THRESHOLD

public static final int SB_ENOUGH_REL_THRESHOLD
See Also:
Constant Field Values

POSITIVE_SHORTCUT_THRESHOLD

public static final float POSITIVE_SHORTCUT_THRESHOLD
See Also:
Constant Field Values

NEGATIVE_SHORTCUT_THRESHOLD

public static final float NEGATIVE_SHORTCUT_THRESHOLD
See Also:
Constant Field Values

SYMBOL_CAT_ORDER

public static final int SYMBOL_CAT_ORDER
See Also:
Constant Field Values

NUMBER_OF_SEQ_CAT

public static final int NUMBER_OF_SEQ_CAT
See Also:
Constant Field Values

POSITIVE_CAT

public static final int POSITIVE_CAT
See Also:
Constant Field Values

NEGATIVE_CAT

public static final int NEGATIVE_CAT
See Also:
Constant Field Values
Constructor Detail

SingleByteCharsetProber

public SingleByteCharsetProber(SequenceModel model)

SingleByteCharsetProber

public SingleByteCharsetProber(SequenceModel model,
                               boolean reversed,
                               CharsetProber nameProber)
Method Detail

getCharSetName

public java.lang.String getCharSetName()
Specified by:
getCharSetName in class CharsetProber

getConfidence

public float getConfidence()
Specified by:
getConfidence in class CharsetProber

getState

public CharsetProber.ProbingState getState()
Specified by:
getState in class CharsetProber

handleData

public CharsetProber.ProbingState handleData(byte[] buf,
                                             int offset,
                                             int length)
Specified by:
handleData in class CharsetProber

reset

public void reset()
Specified by:
reset in class CharsetProber

setOption

public void setOption()
Specified by:
setOption in class CharsetProber


Copyright © 2013. All Rights Reserved.