java.lang.Object
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 Object
  • Field Details

    • START

      public static final int START
      See Also:
    • ERROR

      public static final int ERROR
      See Also:
    • ITSME

      public static final int ITSME
      See Also:
    • classTable

      protected PkgInt classTable
    • classFactor

      protected int classFactor
    • stateTable

      protected PkgInt stateTable
    • charLenTable

      protected int[] charLenTable
    • name

      protected String name
  • Constructor Details

    • SMModel

      public SMModel(PkgInt classTable, int classFactor, PkgInt stateTable, int[] charLenTable, String name)
  • Method Details

    • getClass

      public int getClass(byte b)
    • getNextState

      public int getNextState(int cls, int currentState)
    • getCharLen

      public int getCharLen(int cls)
    • getName

      public String getName()