ie.omk.smpp.util
Class AlphabetFactory

java.lang.Object
  extended by ie.omk.smpp.util.AlphabetFactory

Deprecated. Use EncodingFactory

public final class AlphabetFactory
extends Object

Factory class for getting SMS alphabet encoding objects. The API maintains what it considers a 'default alphabet' for the current VM. If nothing else is specified, that alphabet will be an instance of the SMS default alphabet (implemented by the ie.omk.smpp.util.DefaultAlphabetExt class). Changing the API's default alphabet to another is merely a case of setting the "smpp.default_alphabet" System property to the name of another class, which must implement the ie.omk.smpp.util.SMSAlphabet interface.


Method Summary
static AlphabetEncoding getAlphabet(String lang)
          Deprecated. Get the SMSAlphabet needed for encoding messages in a particular language.
static AlphabetEncoding getDefaultAlphabet()
          Deprecated. Return the default alphabet for this runtime environment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDefaultAlphabet

public static AlphabetEncoding getDefaultAlphabet()
Deprecated. 
Return the default alphabet for this runtime environment. The default alphabet is usually the SMS Default alphabet (ie.omk.smpp.util.DefaultAlphabetExt). This can be altered by setting the smpp.default_alphabet system property to the name of a concrete sub-class of ie.omk.smpp.util.SMSAlphabet. For example, if you have written an alphabet class called 'it.smpp.MyAlphabet', then when running your smppapi-based application, supply a system property using the -D switch:
java -cp .:smppapi.jar -Dsmpp.default_alphabet=ie.smpp.MyAlphabet ...


getAlphabet

public static AlphabetEncoding getAlphabet(String lang)
Deprecated. 
Get the SMSAlphabet needed for encoding messages in a particular language.

Parameters:
lang - The ISO code for the language the message is in.


Copyright © 2011 smppapi at Sourceforge. All Rights Reserved.