public final class SmppUtils extends Object
Modifier and Type | Field and Description |
---|---|
static short[] |
ISO_GSM_0338
See http://unicode.org/Public/MAPPINGS/ETSI/GSM0338.TXT
|
static short[][] |
ISO_GSM_0338_EXT
See http://unicode.org/Public/MAPPINGS/ETSI/GSM0338.TXT
|
Modifier and Type | Method and Description |
---|---|
static org.jsmpp.bean.DataSm |
copyDataSm(org.jsmpp.bean.DataSm src) |
static org.jsmpp.bean.SubmitMulti |
copySubmitMulti(org.jsmpp.bean.SubmitMulti src) |
static org.jsmpp.bean.SubmitSm |
copySubmitSm(org.jsmpp.bean.SubmitSm src) |
static String |
formatTime(Date date) |
static boolean |
is8Bit(org.jsmpp.bean.Alphabet alphabet) |
static boolean |
isGsm0338Encodeable(byte[] aMessage)
Decides if the characters in the argument are GSM 3.38 encodeable.
|
static Date |
string2Date(String date)
YYMMDDhhmmSS where:
YY = last two digits of the year (00-99)
MM = month (01-12)
DD = day (01-31)
hh = hour (00-23)
mm = minute (00-59)
SS = second (00-59)
Java format is (yyMMddHHmmSS).
|
public static final short[] ISO_GSM_0338
public static final short[][] ISO_GSM_0338_EXT
public static Date string2Date(String date)
date
- in String format.NumberFormatException
- if there is contains non number on
date
parameter.IndexOutOfBoundsException
- if the date length in String
format is less than 10.public static boolean is8Bit(org.jsmpp.bean.Alphabet alphabet)
public static boolean isGsm0338Encodeable(byte[] aMessage)
aMessage
- must be a set of characters encoded in ISO-8859-1
or a compatible character set. In particular,
UTF-8 encoded text should not be passed to this method.public static org.jsmpp.bean.SubmitSm copySubmitSm(org.jsmpp.bean.SubmitSm src)
public static org.jsmpp.bean.SubmitMulti copySubmitMulti(org.jsmpp.bean.SubmitMulti src)
public static org.jsmpp.bean.DataSm copyDataSm(org.jsmpp.bean.DataSm src)
Apache Camel