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

ie.omk.smpp.util.ASCIIEncoding Maven / Gradle / Ivy

The newest version!
package ie.omk.smpp.util;

import java.io.UnsupportedEncodingException;

/**
 * Encoding class representing the ASCII (IA5) alphabet encoding.
 */
public class ASCIIEncoding extends ie.omk.smpp.util.AlphabetEncoding {
    private static final int DCS = 1;
    private static final ASCIIEncoding INSTANCE = new ASCIIEncoding();

    /**
     * Construct a new ASCIIEncoding.
     */
    public ASCIIEncoding() {
        super(DCS);
        try {
            setCharset("US-ASCII");
        } catch (UnsupportedEncodingException x) {
            // All JVMs are required to support ASCII..
        }
    }

    /**
     * Get the singleton instance of ASCIIEncoding.
     * @deprecated
     */
    public static ASCIIEncoding getInstance() {
        return INSTANCE;
    }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy