ie.omk.smpp.util.ASCIIEncoding Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of smppapi Show documentation
Show all versions of smppapi Show documentation
Java Implementation of the Short Message Peer to Peer API.
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;
}
}