public class ASCII7bit extends java.lang.Object implements CodeCharset
Modifier and Type | Field and Description |
---|---|
(package private) java.nio.charset.Charset |
charset |
ascii, charsets, iso8859_1
Constructor and Description |
---|
ASCII7bit() |
Modifier and Type | Method and Description |
---|---|
char |
getChar(int code)
Converts from a 8-bit-code to a character
|
java.nio.charset.Charset |
getCharset() |
int |
getCode(char cc)
Converts from a UTC-16(Java-Character to a 8 bit coding.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forName
public int getCode(char cc)
CodeCharset
getCode
in interface CodeCharset
cc
- the characterpublic char getChar(int code)
CodeCharset
getChar
in interface CodeCharset
code
- in range 0..255, maybe >= 256 for UTF-8 sequences (The lowest byte is the first byte),
with max. 4 Byte (for not all UTF characters)public java.nio.charset.Charset getCharset()
getCharset
in interface CodeCharset