org.mozilla.universalchardet.prober
Class UTF8Prober

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

public class UTF8Prober
extends CharsetProber


Nested Class Summary
 
Nested classes/interfaces inherited from class org.mozilla.universalchardet.prober.CharsetProber
CharsetProber.ProbingState
 
Field Summary
static float ONE_CHAR_PROB
           
 
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
UTF8Prober()
           
 
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

ONE_CHAR_PROB

public static final float ONE_CHAR_PROB
See Also:
Constant Field Values
Constructor Detail

UTF8Prober

public UTF8Prober()
Method Detail

getCharSetName

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

handleData

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

getState

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

reset

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

getConfidence

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

setOption

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


Copyright © 2013. All Rights Reserved.