org.mozilla.universalchardet.prober.contextanalysis
Class JapaneseContextAnalysis

java.lang.Object
  extended by org.mozilla.universalchardet.prober.contextanalysis.JapaneseContextAnalysis
Direct Known Subclasses:
EUCJPContextAnalysis, SJISContextAnalysis

public abstract class JapaneseContextAnalysis
extends java.lang.Object


Nested Class Summary
protected  class JapaneseContextAnalysis.Order
           
 
Field Summary
static float DONT_KNOW
           
static int ENOUGH_REL_THRESHOLD
           
protected static byte[][] jp2CharContext
           
static int MAX_REL_THRESHOLD
           
static int MINIMUM_DATA_THRESHOLD
           
static int NUM_OF_CATEGORY
           
 
Constructor Summary
JapaneseContextAnalysis()
           
 
Method Summary
 float getConfidence()
           
protected abstract  int getOrder(byte[] buf, int offset)
           
protected abstract  void getOrder(JapaneseContextAnalysis.Order order, byte[] buf, int offset)
           
 boolean gotEnoughData()
           
 void handleData(byte[] buf, int offset, int length)
           
 void handleOneChar(byte[] buf, int offset, int charLength)
           
 void reset()
           
 void setOption()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NUM_OF_CATEGORY

public static final int NUM_OF_CATEGORY
See Also:
Constant Field Values

ENOUGH_REL_THRESHOLD

public static final int ENOUGH_REL_THRESHOLD
See Also:
Constant Field Values

MAX_REL_THRESHOLD

public static final int MAX_REL_THRESHOLD
See Also:
Constant Field Values

MINIMUM_DATA_THRESHOLD

public static final int MINIMUM_DATA_THRESHOLD
See Also:
Constant Field Values

DONT_KNOW

public static final float DONT_KNOW
See Also:
Constant Field Values

jp2CharContext

protected static final byte[][] jp2CharContext
Constructor Detail

JapaneseContextAnalysis

public JapaneseContextAnalysis()
Method Detail

handleData

public void handleData(byte[] buf,
                       int offset,
                       int length)

handleOneChar

public void handleOneChar(byte[] buf,
                          int offset,
                          int charLength)

getConfidence

public float getConfidence()

reset

public void reset()

setOption

public void setOption()

gotEnoughData

public boolean gotEnoughData()

getOrder

protected abstract void getOrder(JapaneseContextAnalysis.Order order,
                                 byte[] buf,
                                 int offset)

getOrder

protected abstract int getOrder(byte[] buf,
                                int offset)


Copyright © 2013. All Rights Reserved.