ie.ncl.sms.dcs
Class UCS2AlphabetEncoding
java.lang.Object
ie.ncl.util.chars.StringEncoding
ie.ncl.sms.dcs.UCS2AlphabetEncoding
public class UCS2AlphabetEncoding
- extends ie.ncl.util.chars.StringEncoding
This is the GSM UCS2 Unicode character encoding scheme.
Pass it a string/bytes and it returns the corresponding bytes/string.
You cannot be guaranteed that the length of the string and the
length of the byte array will be the same (as some escape characters
may be used).
Field Summary |
static char |
FLASH
Special flashing character (unicode). |
Method Summary |
byte[] |
getBytes(java.lang.String s)
UCS2 Encode. |
java.lang.String |
getString(byte[] bytes)
UCS2 Decode. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FLASH
public static final char FLASH
- Special flashing character (unicode).
- See Also:
- Constant Field Values
UCS2AlphabetEncoding
public UCS2AlphabetEncoding()
getBytes
public byte[] getBytes(java.lang.String s)
- UCS2 Encode.
- Specified by:
getBytes
in class ie.ncl.util.chars.StringEncoding
getString
public java.lang.String getString(byte[] bytes)
- UCS2 Decode.
- Specified by:
getString
in class ie.ncl.util.chars.StringEncoding