Class GSMCharset

All Implemented Interfaces:
Comparable<Charset>
Direct Known Subclasses:
CCGSMCharset, PackedGSMCharset, SCGSMCharset

public class GSMCharset extends EscapedByteLookupCharset
The GSMCharset class handles the encoding and decoding of the GSM default encoding charset. The encoding and decoding are based on the mapping at http://www.unicode.org/Public/MAPPINGS/ETSI/GSM0338.TXT
Since:
2005-05-26
  • Constructor Details

    • GSMCharset

      protected GSMCharset(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.

      Parameters:
      canonicalName - The canonical name of this charset
      aliases - An array of this charset's aliases, or null if it has no aliases
      byteToChar - a byte-to-char conversion table for this charset
      byteToCharEscaped - a byte-to-char conversion table for this charset for the escaped characters
      charToByte - 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 characters
      Throws:
      IllegalCharsetNameException - If the canonical name or any of the aliases are illegal