public interface CharCodec extends Serializable
Modifier and Type | Method and Description |
---|---|
char |
decodeChar(int digit)
Gets the decoded character from an encoded value.
|
int |
encodeChar(char ch)
Gets the encoded value for a character.
|
int encodeChar(char ch)
ch
- the character to encodeUnsupportedDigitException
- if the character is not supported by this encodingchar decodeChar(int digit)
digit
- the encoded form of the character.UnsupportedDigitException
- if the character is not supported by this encoding