Class JapaneseContextAnalysis
java.lang.Object
org.mozilla.universalchardet.prober.contextanalysis.JapaneseContextAnalysis
- Direct Known Subclasses:
EUCJPContextAnalysis, SJISContextAnalysis
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected class///////////////////////////////////////////////////////////// -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanstatic final floatstatic final intprotected static final byte[][]/////////////////////////////////////////////////////////////private intstatic final intstatic final intprivate intstatic final int/////////////////////////////////////////////////////////////private final int[]/////////////////////////////////////////////////////////////private final JapaneseContextAnalysis.Orderprivate int -
Constructor Summary
ConstructorsConstructorDescription///////////////////////////////////////////////////////////// -
Method Summary
Modifier and TypeMethodDescriptionfloatprotected abstract intgetOrder(byte[] buf, int offset) protected abstract voidgetOrder(JapaneseContextAnalysis.Order order, byte[] buf, int offset) booleanvoidhandleData(byte[] buf, int offset, int length) voidhandleOneChar(byte[] buf, int offset, int charLength) voidreset()void
-
Field Details
-
NUM_OF_CATEGORY
public static final int NUM_OF_CATEGORY/////////////////////////////////////////////////////////////- See Also:
-
ENOUGH_REL_THRESHOLD
public static final int ENOUGH_REL_THRESHOLD- See Also:
-
MAX_REL_THRESHOLD
public static final int MAX_REL_THRESHOLD- See Also:
-
MINIMUM_DATA_THRESHOLD
public static final int MINIMUM_DATA_THRESHOLD- See Also:
-
DONT_KNOW
public static final float DONT_KNOW- See Also:
-
relSample
private final int[] relSample///////////////////////////////////////////////////////////// -
totalRel
private int totalRel -
lastCharOrder
private int lastCharOrder -
needToSkipCharNum
private int needToSkipCharNum -
done
private boolean done -
tmpOrder
-
jp2CharContext
protected static final byte[][] jp2CharContext/////////////////////////////////////////////////////////////
-
-
Constructor Details
-
JapaneseContextAnalysis
public JapaneseContextAnalysis()/////////////////////////////////////////////////////////////
-
-
Method Details
-
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
-
getOrder
protected abstract int getOrder(byte[] buf, int offset)
-