Class BinaryCharCodec

    • Method Detail

      • getInstance

        public static BinaryCharCodec getInstance()
        Gets the standard binary char codec.
        Returns:
        BinaryCharCodec
      • encodeChar

        public int encodeChar​(char ch)
        Description copied from interface: CharCodec
        Gets the encoded value for a character.
        Specified by:
        encodeChar in interface CharCodec
        Parameters:
        ch - the character to encode
        Returns:
        the encoded form of the character
      • decodeChar

        public char decodeChar​(int digit)
        Description copied from interface: CharCodec
        Gets the decoded character from an encoded value.
        Specified by:
        decodeChar in interface CharCodec
        Parameters:
        digit - the encoded form of the character.
        Returns:
        the decoded character