Class Transcoder

    • Field Detail

      • source

        final byte[] source
      • destination

        final byte[] destination
      • hashCode

        final int hashCode
      • treeStart

        final int treeStart
      • byteArray

        final byte[] byteArray
      • intArray

        final int[] intArray
      • inputUnitLength

        public final int inputUnitLength
      • maxInput

        public final int maxInput
      • maxOutput

        public final int maxOutput
      • stateSize

        final int stateSize
      • byteArrayHash

        static final ObjHash<java.lang.String,​byte[]> byteArrayHash
      • wordArrayHash

        static final ObjHash<java.lang.String,​int[]> wordArrayHash
    • Constructor Detail

      • Transcoder

        protected Transcoder​(byte[] source,
                             byte[] destination,
                             int treeStart,
                             java.lang.String arrayKey,
                             int inputUnitLength,
                             int maxInput,
                             int maxOutput,
                             AsciiCompatibility compatibility,
                             int stateSize)
      • Transcoder

        protected Transcoder​(java.lang.String source,
                             java.lang.String destination,
                             int treeStart,
                             java.lang.String arrayKey,
                             int inputUnitLength,
                             int maxInput,
                             int maxOutput,
                             AsciiCompatibility compatibility,
                             int stateSize)
    • Method Detail

      • getSource

        public byte[] getSource()
      • getDestination

        public byte[] getDestination()
      • hasStateInit

        public boolean hasStateInit()
      • stateInit

        public int stateInit​(byte[] statep)
      • stateFinish

        public int stateFinish​(byte[] stateFinish)
      • infoToInfo

        public int infoToInfo​(byte[] statep,
                              int o)
      • startToInfo

        public int startToInfo​(byte[] statep,
                               byte[] s,
                               int sStart,
                               int l)
      • infoToOutput

        public int infoToOutput​(byte[] statep,
                                int nextInfo,
                                byte[] p,
                                int start,
                                int size)
      • hasFinish

        public boolean hasFinish()
      • finish

        public int finish​(byte[] statep,
                          byte[] p,
                          int start,
                          int size)
      • resetSize

        public int resetSize​(byte[] statep)
      • resetState

        public int resetState​(byte[] statep,
                              byte[] p,
                              int start,
                              int size)
      • startToOutput

        public int startToOutput​(byte[] statep,
                                 byte[] s,
                                 int sStart,
                                 int l,
                                 byte[] o,
                                 int oStart,
                                 int oSize)
      • startInfoToOutput

        public int startInfoToOutput​(byte[] statep,
                                     byte[] s,
                                     int sStart,
                                     int l,
                                     int info,
                                     byte[] o,
                                     int oStart,
                                     int oSize)
      • transcoding

        public final Transcoding transcoding​(int flags)
      • load

        public static Transcoder load​(java.lang.String name)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • toStringFull

        public java.lang.String toStringFull()