All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.freeutils.charset.gsm.CRCCPackedGSMCharset Maven / Gradle / Ivy

The newest version!
/*
 *  Copyright © 2005-2019 Amichai Rothman
 *
 *  This file is part of JCharset - the Java Charset package.
 *
 *  JCharset is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  JCharset is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with JCharset.  If not, see .
 *
 *  For additional info see http://www.freeutils.net/source/jcharset/
 */

package net.freeutils.charset.gsm;

/**
 * The CRCCPackedGSMCharset class handles the encoding and decoding of the
 * GSM default encoding charset. In this variant, byte 0x09 is mapped
 * to the LATIN CAPITAL LETTER C WITH CEDILLA character.
 * It also uses {@link PackedGSMCharset CR-padding} instead of
 * zero-padding to avoid ambiguous interpretation of an '@' character.
 * 

* The encoding and decoding are based on the mapping at * http://www.unicode.org/Public/MAPPINGS/ETSI/GSM0338.TXT * * @author Amichai Rothman * @since 2019-03-31 */ public class CRCCPackedGSMCharset extends PackedGSMCharset { static final String NAME = "CRCCPGSM"; static final String[] ALIASES = {}; /** * Constructs an instance of the CRCCPackedGSMCharset. */ public CRCCPackedGSMCharset() { super(NAME, ALIASES, BYTE_TO_CHAR_CAPITAL_C_CEDILLA, BYTE_TO_CHAR_ESCAPED_DEFAULT, CHAR_TO_BYTE_CAPITAL_C_CEDILLA, CHAR_TO_BYTE_ESCAPED_DEFAULT, true); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy