public class PackedGSMCharset extends GSMCharset
| Modifier and Type | Class and Description |
|---|---|
protected class |
PackedGSMCharset.Decoder
The Decoder inner class handles the decoding of the
Packed GSM default encoding charset.
|
protected class |
PackedGSMCharset.Encoder
The Encoder inner class handles the encoding of the
Packed GSM default encoding charset.
|
| Modifier | Constructor and Description |
|---|---|
protected |
PackedGSMCharset(String canonicalName,
String[] aliases,
int[] byteToChar,
int[] byteToCharEscaped,
int[][] charToByte,
int[][] charToByteEscaped)
Initializes a new charset with the given canonical name and alias
set, and byte-to-char/char-to-byte lookup tables.
|
| Modifier and Type | Method and Description |
|---|---|
CharsetDecoder |
newDecoder()
Constructs a new decoder for this charset.
|
CharsetEncoder |
newEncoder()
Constructs a new encoder for this charset.
|
static byte[] |
pack(byte[] in)
Packs the given data into full bytes.
|
static byte[] |
unpack(byte[] in)
Unpacks the given data into original bytes.
|
containsaliases, availableCharsets, canEncode, compareTo, decode, defaultCharset, displayName, displayName, encode, encode, equals, forName, hashCode, isRegistered, isSupported, name, toStringprotected PackedGSMCharset(String canonicalName, String[] aliases, int[] byteToChar, int[] byteToCharEscaped, int[][] charToByte, int[][] charToByteEscaped)
canonicalName - the canonical name of this charsetaliases - an array of this charset's aliases, or null if it has no aliasesbyteToChar - a byte-to-char conversion table for this charsetbyteToCharEscaped - a byte-to-char conversion table for this charset
for the escaped characterscharToByte - a char-to-byte conversion table for this charset. It can
be generated on-the-fly by calling createInverseLookupTable(byteToChar).charToByteEscaped - a char-to-byte conversion table for this charset
for the escaped charactersIllegalCharsetNameException - if the canonical name or any of the aliases are illegalpublic CharsetDecoder newDecoder()
newDecoder in class EscapedByteLookupCharsetpublic CharsetEncoder newEncoder()
newEncoder in class EscapedByteLookupCharsetUnsupportedOperationException - if this charset does not support encodingpublic static byte[] unpack(byte[] in)
in - the input bytespublic static byte[] pack(byte[] in)
in - the input bytesCopyright © 2015 freeutils.net. All rights reserved.