public abstract class SMSDeliverReport extends SMSTPDUWithData
SMSTPDUWithData.UserDataHeaderIndicatorSMSTPDU.TypeDataCodingScheme_value, OnlyHeader_present, OnlyHeader_value, ProtocolId_value, UserData_value, UserDataHeaderIndicator_value, UserDataLength_present, UserDataLength_valueisDecodedencodedFIELD_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, setUserDataStringdecodeRPAck, decodeRPAck, decodeRPError, decodeRPError, decodeRPMOData, decodeRPMOData, decodeRPMTData, decodeRPMTData, encodeRPAck, encodeRPError, encodeRPMOData, encodeRPMTData, getEncodedForm, getTypecheckDecode, checkModifyAndDecode, decode, encodeequals, getFieldsMap, hashCode, toStringcheckModify, clone, isReadOnlypublic 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 SMSTPDUWithDataEncodeException - if any mandatory field is not presentpublic SMSTPDUWithData.UserDataHeaderIndicator getUserDataHeaderIndicator() throws DecodeException
getUserDataHeaderIndicator in class SMSTPDUWithDataDecodeException - if encoded state cannot be decodedpublic SMSProtocolId getProtocolId() throws DecodeException
getProtocolId in class SMSTPDUWithDataDecodeException - if encoded state cannot be decodedpublic SMSDataCodingScheme getDataCodingScheme() throws DecodeException
getDataCodingScheme in class SMSTPDUWithDataDecodeException - if encoded state cannot be decodedpublic int getUserDataLength()
throws DecodeException
getUserDataLength in class SMSTPDUWithDataDecodeException - if encoded state cannot be decodedpublic byte[] getUserData()
throws DecodeException
getUserData in class SMSTPDUWithDataDecodeException - if encoded state cannot be decodedpublic SMSDeliverReport setUserDataHeaderIndicator(SMSTPDUWithData.UserDataHeaderIndicator value) throws IllegalStateException
setUserDataHeaderIndicator in class SMSTPDUWithDatavalue - UserDataHeaderIndicator representation of whether user data contains a headerIllegalStateExceptionpublic SMSDeliverReport setProtocolId(SMSProtocolId value) throws IllegalStateException
setProtocolId in class SMSTPDUWithDatavalue - SMSProtocolId representation of identifies the above layer protocolIllegalStateExceptionpublic SMSDeliverReport setDataCodingScheme(SMSDataCodingScheme value) throws IllegalStateException
setDataCodingScheme in class SMSTPDUWithDatavalue - SMSDataCodingScheme representation of the coding scheme within the user dataIllegalStateExceptionpublic SMSDeliverReport setUserDataLength(int value) throws IllegalStateException
setUserDataLength in class SMSTPDUWithDatavalue - int representation of the length of the user dataIllegalStateExceptionpublic SMSDeliverReport setUserData(byte[] value) throws IllegalStateException
setUserData in class SMSTPDUWithDatavalue - byte[] representation of the user dataIllegalStateException