public class GSMCharset extends BaseCharset
| Modifier and Type | Field and Description |
|---|---|
static char[] |
CHAR_TABLE |
static char[] |
EXT_CHAR_TABLE
Extended character table.
|
static int |
EXTENDED_ESCAPE |
static int |
PAGE_BREAK
Page break (extended table).
|
| Constructor and Description |
|---|
GSMCharset() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
canRepresent(CharSequence str0)
Verifies that this charset can represent every character in the Java
String (char sequence).
|
void |
decode(byte[] bytes,
StringBuilder buffer)
Decode an SMS default alphabet-encoded octet string into a Java String.
|
byte[] |
encode(CharSequence str0)
Encode the Java string into a byte array.
|
int |
estimateDecodeCharLength(byte[] bytes) |
int |
estimateEncodeByteLength(CharSequence str0) |
decode, normalizepublic static final int EXTENDED_ESCAPE
public static final int PAGE_BREAK
public static final char[] CHAR_TABLE
public static final char[] EXT_CHAR_TABLE
EXTENDED_ESCAPEpublic static boolean canRepresent(CharSequence str0)
str0 - The String to verifypublic int estimateEncodeByteLength(CharSequence str0)
public byte[] encode(CharSequence str0)
Charsetstr0 - The Java string to convert into a byte arraypublic int estimateDecodeCharLength(byte[] bytes)
public void decode(byte[] bytes,
StringBuilder buffer)
bytes - The array of bytes to decodebuffer - The String buffer to append chars toCopyright © 2012-2014 Cloudhopper by Twitter. All Rights Reserved.