public class CdmaSmsAddress extends SmsAddress
Modifier and Type | Field and Description |
---|---|
static int |
DIGIT_MODE_4BIT_DTMF
Digit Mode Indicator is a 1-bit value that indicates whether
the address digits are 4-bit DTMF codes or 8-bit codes.
|
static int |
DIGIT_MODE_8BIT_CHAR |
int |
digitMode |
static int |
NUMBER_MODE_DATA_NETWORK |
static int |
NUMBER_MODE_NOT_DATA_NETWORK
Number Mode Indicator is 1-bit value that indicates whether the
address type is a data network address or not.
|
static int |
NUMBERING_PLAN_ISDN_TELEPHONY |
static int |
NUMBERING_PLAN_UNKNOWN
Numbering Plan identification is a 0 or 4-bit value that
indicates which numbering plan identification is set.
|
int |
numberMode |
int |
numberOfDigits
This field shall be set to the number of address digits
(See 3GPP2 C.S0015-B, v2, 3.4.3.3)
|
int |
numberPlan |
static int |
SMS_ADDRESS_MAX
Maximum lengths for fields as defined in ril_cdma_sms.h.
|
static int |
SMS_SUBADDRESS_MAX |
static int |
TON_ABBREVIATED |
static int |
TON_ALPHANUMERIC |
static int |
TON_INTERNATIONAL_OR_IP |
static int |
TON_NATIONAL_OR_EMAIL |
static int |
TON_NETWORK |
static int |
TON_RESERVED |
static int |
TON_SUBSCRIBER |
static int |
TON_UNKNOWN
Number Types for data networks.
|
address, origBytes, ton, TON_INTERNATIONAL, TON_NATIONAL
Constructor and Description |
---|
CdmaSmsAddress()
NOTE: the parsed string address and the raw byte array values
are stored in the parent class address and origBytes fields,
respectively.
|
Modifier and Type | Method and Description |
---|---|
static CdmaSmsAddress |
parse(String address)
Given a string, create a corresponding CdmaSmsAddress object.
|
String |
toString()
Returns a string representation of the object.
|
couldBeEmailGateway, getAddressString, isAlphanumeric, isNetworkSpecific
public static final int DIGIT_MODE_4BIT_DTMF
public static final int DIGIT_MODE_8BIT_CHAR
public int digitMode
public static final int NUMBER_MODE_NOT_DATA_NETWORK
public static final int NUMBER_MODE_DATA_NETWORK
public int numberMode
public static final int TON_UNKNOWN
public static final int TON_INTERNATIONAL_OR_IP
public static final int TON_NATIONAL_OR_EMAIL
public static final int TON_NETWORK
public static final int TON_SUBSCRIBER
public static final int TON_ALPHANUMERIC
public static final int TON_ABBREVIATED
public static final int TON_RESERVED
public static final int SMS_ADDRESS_MAX
public static final int SMS_SUBADDRESS_MAX
public int numberOfDigits
public static final int NUMBERING_PLAN_UNKNOWN
public static final int NUMBERING_PLAN_ISDN_TELEPHONY
public int numberPlan
public CdmaSmsAddress()
public String toString()
Object
toString
method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString
method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@
', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
public static CdmaSmsAddress parse(String address)