public abstract class SMSDeliverReport extends SMSTPDUWithData
SMSTPDUWithData.UserDataHeaderIndicator
SMSTPDU.Type
DataCodingScheme_value, OnlyHeader_present, OnlyHeader_value, ProtocolId_value, UserData_value, UserDataHeaderIndicator_value, UserDataLength_present, UserDataLength_value
isDecoded
encoded
FIELD_ABSENT, FIELD_UNINITIALISED
Constructor and Description |
---|
SMSDeliverReport()
Constructs a new SMSDeliverReport object with no fields set.
|
SMSDeliverReport(byte[] data)
Constructs a new SMSDeliverReport object from network-encoded data.
|
SMSDeliverReport(byte[] data,
int start,
int len)
Constructs a new SMSDeliverReport object from part of network-encoded data.
|
Modifier and Type | Method and Description |
---|---|
void |
checkFieldsSet()
Checks that all mandatory fields are present.
|
SMSDataCodingScheme |
getDataCodingScheme()
Gets the value of the coding scheme within the user data.
|
SMSProtocolId |
getProtocolId()
Gets the value of identifies the above layer protocol.
|
byte[] |
getUserData()
Gets the value of the user data.
|
SMSTPDUWithData.UserDataHeaderIndicator |
getUserDataHeaderIndicator()
Gets the value of whether user data contains a header.
|
int |
getUserDataLength()
Gets the value of the length of the user data.
|
SMSDeliverReport |
setDataCodingScheme(SMSDataCodingScheme value)
Sets the value of the coding scheme within the user data.
|
SMSDeliverReport |
setProtocolId(SMSProtocolId value)
Sets the value of identifies the above layer protocol.
|
SMSDeliverReport |
setUserData(byte[] value)
Sets the value of the user data.
|
SMSDeliverReport |
setUserDataHeaderIndicator(SMSTPDUWithData.UserDataHeaderIndicator value)
Sets the value of whether user data contains a header.
|
SMSDeliverReport |
setUserDataLength(int value)
Sets the value of the length of the user data.
|
checkUserDataConstraints, getUserDataHeader, getUserDataString, hasDataCodingScheme, hasOnlyHeader, hasProtocolId, hasUserData, hasUserDataHeaderIndicator, hasUserDataLength, setOnlyHeaderPresent, setReadOnly, setUserDataLengthPresent, setUserDataString, setUserDataString, setUserDataString, setUserDataString
decodeRPAck, decodeRPAck, decodeRPError, decodeRPError, decodeRPMOData, decodeRPMOData, decodeRPMTData, decodeRPMTData, encodeRPAck, encodeRPError, encodeRPMOData, encodeRPMTData, getEncodedForm, getType
checkDecode, checkModifyAndDecode, decode, encode
equals, getFieldsMap, hashCode, toString
checkModify, clone, isReadOnly
public SMSDeliverReport()
public SMSDeliverReport(byte[] data)
data
- network-encoded dataNullPointerException
- if data is nullpublic SMSDeliverReport(byte[] data, int start, int len)
start
and is len
bytes long.
The data is not decoded and might not be decodable.data
- network-encoded datastart
- starting offset of network-encoded data in byte arraylen
- default length if not predictableNullPointerException
- if data is nullIllegalArgumentException
- if len is negativepublic void checkFieldsSet() throws EncodeException
checkFieldsSet
in class SMSTPDUWithData
EncodeException
- if any mandatory field is not presentpublic SMSTPDUWithData.UserDataHeaderIndicator getUserDataHeaderIndicator() throws DecodeException
getUserDataHeaderIndicator
in class SMSTPDUWithData
DecodeException
- if encoded state cannot be decodedpublic SMSProtocolId getProtocolId() throws DecodeException
getProtocolId
in class SMSTPDUWithData
DecodeException
- if encoded state cannot be decodedpublic SMSDataCodingScheme getDataCodingScheme() throws DecodeException
getDataCodingScheme
in class SMSTPDUWithData
DecodeException
- if encoded state cannot be decodedpublic int getUserDataLength() throws DecodeException
getUserDataLength
in class SMSTPDUWithData
DecodeException
- if encoded state cannot be decodedpublic byte[] getUserData() throws DecodeException
getUserData
in class SMSTPDUWithData
DecodeException
- if encoded state cannot be decodedpublic SMSDeliverReport setUserDataHeaderIndicator(SMSTPDUWithData.UserDataHeaderIndicator value) throws IllegalStateException
setUserDataHeaderIndicator
in class SMSTPDUWithData
value
- UserDataHeaderIndicator representation of whether user data contains a headerIllegalStateException
public SMSDeliverReport setProtocolId(SMSProtocolId value) throws IllegalStateException
setProtocolId
in class SMSTPDUWithData
value
- SMSProtocolId representation of identifies the above layer protocolIllegalStateException
public SMSDeliverReport setDataCodingScheme(SMSDataCodingScheme value) throws IllegalStateException
setDataCodingScheme
in class SMSTPDUWithData
value
- SMSDataCodingScheme representation of the coding scheme within the user dataIllegalStateException
public SMSDeliverReport setUserDataLength(int value) throws IllegalStateException
setUserDataLength
in class SMSTPDUWithData
value
- int representation of the length of the user dataIllegalStateException
public SMSDeliverReport setUserData(byte[] value) throws IllegalStateException
setUserData
in class SMSTPDUWithData
value
- byte[] representation of the user dataIllegalStateException