Experts in SMS and MMS Technology. NCLs Provato is an SMS/MMS Gateway supporting  WAP Push, EMS, MMS, SMS, Nokia Smart Messaging, SMPP, CIMD, UCP, MM7, M20, TC35 NCL Technologies Ltd
Provato - SMS MMS Gateway
Mobile Messaging in J2EE & .NET

SwiftNote - Java SMS Toolkit

ie.ncl.sms.dcs
Class GsmAlphabetEncoding

java.lang.Object
  extended by ie.ncl.util.chars.StringEncoding
      extended by ie.ncl.util.chars.CharacterEncoding
          extended by ie.ncl.util.chars.EscapeCharacterEncoding
              extended by ie.ncl.sms.dcs.GsmAlphabetEncoding
Direct Known Subclasses:
SemaMOAlphabetEncoding, SemaMTAlphabetEncoding

public class GsmAlphabetEncoding
extends ie.ncl.util.chars.EscapeCharacterEncoding

This is the default GSM 7-bit 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 adi
          a with diaeresis character.
static char ADI
          A with diaeresis character.
static char ae
          ae joined character.
static char AE
          AE joined (Ligature AE) character.
static char agr
          a with grave character.
static char ang
          Anstrom lower character.
static char ANG
          Anstrom (ring over A) character.
static char CED
          C with Cedilla character.
static char CR
          Carraige return character.
static char CUR
          Currency sign (o,with 4 normals) character.
static char DEL
          Delta character.
static char eac
          e with acute character.
static char EAC
          E with accent character.
static char egr
          e with grave character.
static char emp
          Lower case Null/Empty set character.
static char EMP
          Null/empty set (like 0) character.
static char ESC
          Escape character.
static char ESZ
          Sharpened S (German eszett) character.
static char EUR
          Euro sign character.
static char EURO
          Euro sign character (alias).
static char GAM
          Gamma character.
static char IEM
          inverted exclaimation mark character.
static char igr
          i with grave character.
static char IQM
          inverted question mark character.
static char LAM
          Lamda character.
static char LF
          Line feed character.
static char nti
          n with tilde character.
static char NTI
          N with tilde character.
static char odi
          o with diaeresis character.
static char ODI
          O with diaeresis character.
static char ogr
          o with grave character.
static char OME
          Omega character.
static char PBK
          Form feed (page break) character
static char PHI
          Phi character.
static char PI
          Pi character.
static char PSI
          Psi character.
static char QUO
          Quotation character.
static char SEC
          Section marker character.
static char SIG
          Sigma character.
static char[] SMS_ALPHABET
           
static char THE
          Theta character.
static char udi
          u with diaeresis character.
static char UDI
          U with diaeresis character.
static char ugr
          u with grave character.
static char XI
          Xi character.
static char YEN
          Yen currency sign character.
 
Constructor Summary
GsmAlphabetEncoding()
           
 
Method Summary
static int getEncodingLength(java.lang.String text)
           
 java.lang.String getString(byte[] bytes)
          Convert bytes to characters.
 boolean isEscapeCharAtEnd(byte[] bytes)
           
static boolean isLongGsmMessage(java.lang.String text)
           
static java.lang.String transposeFirstCharacter(java.lang.String s)
           
 
Methods inherited from class ie.ncl.util.chars.EscapeCharacterEncoding
decode, encode, recognize
 
Methods inherited from class ie.ncl.util.chars.CharacterEncoding
getBytes, getString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEL

public static final char DEL
Delta character.

See Also:
Constant Field Values

PHI

public static final char PHI
Phi character.

See Also:
Constant Field Values

GAM

public static final char GAM
Gamma character.

See Also:
Constant Field Values

LAM

public static final char LAM
Lamda character.

See Also:
Constant Field Values

OME

public static final char OME
Omega character.

See Also:
Constant Field Values

PI

public static final char PI
Pi character.

See Also:
Constant Field Values

PSI

public static final char PSI
Psi character.

See Also:
Constant Field Values

SIG

public static final char SIG
Sigma character.

See Also:
Constant Field Values

THE

public static final char THE
Theta character.

See Also:
Constant Field Values

XI

public static final char XI
Xi character.

See Also:
Constant Field Values

IEM

public static final char IEM
inverted exclaimation mark character.

See Also:
Constant Field Values

IQM

public static final char IQM
inverted question mark character.

See Also:
Constant Field Values

CUR

public static final char CUR
Currency sign (o,with 4 normals) character.

See Also:
Constant Field Values

YEN

public static final char YEN
Yen currency sign character.

See Also:
Constant Field Values

agr

public static final char agr
a with grave character.

See Also:
Constant Field Values

egr

public static final char egr
e with grave character.

See Also:
Constant Field Values

EAC

public static final char EAC
E with accent character.

See Also:
Constant Field Values

eac

public static final char eac
e with acute character.

See Also:
Constant Field Values

ugr

public static final char ugr
u with grave character.

See Also:
Constant Field Values

igr

public static final char igr
i with grave character.

See Also:
Constant Field Values

ogr

public static final char ogr
o with grave character.

See Also:
Constant Field Values

CED

public static final char CED
C with Cedilla character.

See Also:
Constant Field Values

EMP

public static final char EMP
Null/empty set (like 0) character.

See Also:
Constant Field Values

emp

public static final char emp
Lower case Null/Empty set character.

See Also:
Constant Field Values

ANG

public static final char ANG
Anstrom (ring over A) character.

See Also:
Constant Field Values

ang

public static final char ang
Anstrom lower character.

See Also:
Constant Field Values

AE

public static final char AE
AE joined (Ligature AE) character.

See Also:
Constant Field Values

ae

public static final char ae
ae joined character.

See Also:
Constant Field Values

ESZ

public static final char ESZ
Sharpened S (German eszett) character.

See Also:
Constant Field Values

ADI

public static final char ADI
A with diaeresis character.

See Also:
Constant Field Values

adi

public static final char adi
a with diaeresis character.

See Also:
Constant Field Values

ODI

public static final char ODI
O with diaeresis character.

See Also:
Constant Field Values

odi

public static final char odi
o with diaeresis character.

See Also:
Constant Field Values

UDI

public static final char UDI
U with diaeresis character.

See Also:
Constant Field Values

udi

public static final char udi
u with diaeresis character.

See Also:
Constant Field Values

NTI

public static final char NTI
N with tilde character.

See Also:
Constant Field Values

nti

public static final char nti
n with tilde character.

See Also:
Constant Field Values

SEC

public static final char SEC
Section marker character.

See Also:
Constant Field Values

CR

public static final char CR
Carraige return character.

See Also:
Constant Field Values

LF

public static final char LF
Line feed character.

See Also:
Constant Field Values

ESC

public static final char ESC
Escape character.

See Also:
Constant Field Values

QUO

public static final char QUO
Quotation character.

See Also:
Constant Field Values

PBK

public static final char PBK
Form feed (page break) character

See Also:
Constant Field Values

EUR

public static final char EUR
Euro sign character.

See Also:
Constant Field Values

EURO

public static final char EURO
Euro sign character (alias).

See Also:
Constant Field Values

SMS_ALPHABET

public static final char[] SMS_ALPHABET
Constructor Detail

GsmAlphabetEncoding

public GsmAlphabetEncoding()
Method Detail

isEscapeCharAtEnd

public boolean isEscapeCharAtEnd(byte[] bytes)

transposeFirstCharacter

public static java.lang.String transposeFirstCharacter(java.lang.String s)

getEncodingLength

public static int getEncodingLength(java.lang.String text)

isLongGsmMessage

public static boolean isLongGsmMessage(java.lang.String text)

getString

public java.lang.String getString(byte[] bytes)
Description copied from class: ie.ncl.util.chars.CharacterEncoding
Convert bytes to characters.

Overrides:
getString in class ie.ncl.util.chars.CharacterEncoding

Experts in SMS and MMS Technology. NCLs Provato is an SMS/MMS Gateway supporting  WAP Push, EMS, MMS, SMS, Nokia Smart Messaging, SMPP, CIMD, UCP, MM7, M20, TC35 NCL Technologies Ltd
Provato - SMS MMS Gateway
Mobile Messaging in J2EE & .NET

SwiftNote - Java SMS Toolkit