Class RBBIDataWrapper.RBBIStateTable

  • Enclosing class:
    RBBIDataWrapper

    public static class RBBIDataWrapper.RBBIStateTable
    extends java.lang.Object
    A RBBI State Transition table, the form of the data used at run time in Java. These can be created from stored ICU data, or built from rules. The structure corresponds closely to struct RBBIStateTable in ICU4C.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      int fDictCategoriesStart
      Char category number of the first dictionary char class, or the the largest category number + 1 if there are no dictionary categories.
      int fFlags
      Option Flags for this state table.
      static int fHeaderSize
      Length in bytes of the state table header, of all the int32 fields preceding fTable in the serialized form.
      int fLookAheadResultsSize
      Size of run-time array required for holding look-ahead results.
      int fNumStates
      Number of states (rows) in this table.
      int fRowLen
      Length of a table row in bytes.
      char[] fTable
      Linear array of next state values, accessed as short[state, char_class]
    • Constructor Summary

      Constructors 
      Constructor Description
      RBBIStateTable()  
    • Field Detail

      • fNumStates

        public int fNumStates
        Number of states (rows) in this table.
      • fRowLen

        public int fRowLen
        Length of a table row in bytes. Note mismatch with table data, which is short[].
      • fDictCategoriesStart

        public int fDictCategoriesStart
        Char category number of the first dictionary char class, or the the largest category number + 1 if there are no dictionary categories.
      • fLookAheadResultsSize

        public int fLookAheadResultsSize
        Size of run-time array required for holding look-ahead results. Indexed by row.fLookAhead.
      • fFlags

        public int fFlags
        Option Flags for this state table.
      • fHeaderSize

        public static int fHeaderSize
        Length in bytes of the state table header, of all the int32 fields preceding fTable in the serialized form.
      • fTable

        public char[] fTable
        Linear array of next state values, accessed as short[state, char_class]
    • Constructor Detail

      • RBBIStateTable

        public RBBIStateTable()
    • Method Detail

      • put

        public int put​(java.io.DataOutputStream bytes)
                throws java.io.IOException
        Throws:
        java.io.IOException
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object