public class ISO8859_2 extends java.lang.Object implements CodeCharset
Modifier and Type | Field and Description |
---|---|
(package private) java.nio.charset.Charset |
charset |
private static int[] |
chartable |
private static int[] |
chartableSorted |
private static int[] |
codeSorted |
ascii, charsets, iso8859_1
Constructor and Description |
---|
ISO8859_2() |
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
java.nio.charset.Charset charset
private static int[] chartable
private static int[] chartableSorted
private static int[] codeSorted
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