org.mozilla.universalchardet.prober.statemachine
Class SMModel

java.lang.Object
  extended by org.mozilla.universalchardet.prober.statemachine.SMModel
Direct Known Subclasses:
Big5SMModel, EUCJPSMModel, EUCKRSMModel, EUCTWSMModel, GB18030SMModel, HZSMModel, ISO2022CNSMModel, ISO2022JPSMModel, ISO2022KRSMModel, SJISSMModel, UCS2BESMModel, UTF8SMModel

public abstract class SMModel
extends java.lang.Object


Field Summary
protected  int[] charLenTable
           
protected  int classFactor
           
protected  PkgInt classTable
           
static int ERROR
           
static int ITSME
           
protected  java.lang.String name
           
static int START
           
protected  PkgInt stateTable
           
 
Constructor Summary
SMModel(PkgInt classTable, int classFactor, PkgInt stateTable, int[] charLenTable, java.lang.String name)
           
 
Method Summary
 int getCharLen(int cls)
           
 int getClass(byte b)
           
 java.lang.String getName()
           
 int getNextState(int cls, int currentState)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

START

public static final int START
See Also:
Constant Field Values

ERROR

public static final int ERROR
See Also:
Constant Field Values

ITSME

public static final int ITSME
See Also:
Constant Field Values

classTable

protected PkgInt classTable

classFactor

protected int classFactor

stateTable

protected PkgInt stateTable

charLenTable

protected int[] charLenTable

name

protected java.lang.String name
Constructor Detail

SMModel

public SMModel(PkgInt classTable,
               int classFactor,
               PkgInt stateTable,
               int[] charLenTable,
               java.lang.String name)
Method Detail

getClass

public int getClass(byte b)

getNextState

public int getNextState(int cls,
                        int currentState)

getCharLen

public int getCharLen(int cls)

getName

public java.lang.String getName()


Copyright © 2013. All Rights Reserved.