Class BinaryCharCodec
- java.lang.Object
-
- com.opencloud.slee.resources.in.datatypes.BinaryCharCodec
-
- All Implemented Interfaces:
CharCodec
,Serializable
public final class BinaryCharCodec extends Object implements CharCodec
Implements a CharCodec for cases of encoding and decoding decimal digits in octets.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
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 interfaceCharCodec
- 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 interfaceCharCodec
- Parameters:
digit
- the encoded form of the character.- Returns:
- the decoded character
-
-