public class GsmSmsAddress extends SmsAddress
address, origBytes, ton, TON_ABBREVIATED, TON_ALPHANUMERIC, TON_INTERNATIONAL, TON_NATIONAL, TON_NETWORK, TON_SUBSCRIBER, TON_UNKNOWN
Constructor and Description |
---|
GsmSmsAddress(byte[] data,
int offset,
int length)
New GsmSmsAddress from TS 23.040 9.1.2.5 Address Field
|
Modifier and Type | Method and Description |
---|---|
String |
getAddressString()
Returns the address of the SMS message in String form or null if unavailable
|
boolean |
isAlphanumeric()
Returns true if this is an alphanumeric address
|
boolean |
isCphsVoiceMessageClear()
Returns true if this is a valid CPHS voice message waiting indicator
address indicating a "clear" of "indicator 1" of type "voice message
waiting"
|
boolean |
isCphsVoiceMessageIndicatorAddress()
Returns true of this is a valid CPHS voice message waiting indicator
address
|
boolean |
isCphsVoiceMessageSet()
Returns true if this is a valid CPHS voice message waiting indicator
address indicating a "set" of "indicator 1" of type "voice message
waiting"
|
boolean |
isNetworkSpecific()
Returns true if this is a network address
|
couldBeEmailGateway
public GsmSmsAddress(byte[] data, int offset, int length) throws ParseException
offset
- the offset of the Address-Length bytelength
- the length in bytes rounded up, e.g. "2 +
(addressLength + 1) / 2"ParseException
public String getAddressString()
SmsAddress
getAddressString
in class SmsAddress
public boolean isAlphanumeric()
isAlphanumeric
in class SmsAddress
public boolean isNetworkSpecific()
SmsAddress
isNetworkSpecific
in class SmsAddress
public boolean isCphsVoiceMessageIndicatorAddress()
public boolean isCphsVoiceMessageSet()
public boolean isCphsVoiceMessageClear()