public final class BinaryCharCodec extends Object implements CharCodec
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.
|
static BinaryCharCodec |
getInstance()
Gets the standard binary char codec.
|
public static BinaryCharCodec getInstance()
public int encodeChar(char ch)
CharCodec
encodeChar
in interface CharCodec
ch
- the character to encodepublic char decodeChar(int digit)
CharCodec
decodeChar
in interface CharCodec
digit
- the encoded form of the character.