public class WspTypeDecoder extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CONTENT_TYPE_B_MMS |
static String |
CONTENT_TYPE_B_PUSH_CO |
static String |
CONTENT_TYPE_B_PUSH_SYNCML_NOTI |
static int |
PARAMETER_ID_X_WAP_APPLICATION_ID |
static int |
PDU_TYPE_CONFIRMED_PUSH |
static int |
PDU_TYPE_PUSH |
Constructor and Description |
---|
WspTypeDecoder(byte[] pdu) |
Modifier and Type | Method and Description |
---|---|
boolean |
decodeConstrainedEncoding(int startIndex)
Decode the "Constrained-encoding" type for WSP pdu
|
boolean |
decodeContentLength(int startIndex)
Decode the "Content length" type for WSP pdu
|
boolean |
decodeContentLocation(int startIndex)
Decode the "Content location" type for WSP pdu
|
boolean |
decodeContentType(int startIndex)
Decode the "Content-type" type for WSP pdu
|
boolean |
decodeExtensionMedia(int startIndex)
Decode the "Extension-media" type for WSP PDU.
|
boolean |
decodeIntegerValue(int startIndex)
Decode the "Integer-Value" type for WSP pdu
|
boolean |
decodeLongInteger(int startIndex)
Decode the "Long-integer" type for WSP pdu
|
boolean |
decodeShortInteger(int startIndex)
Decode the "Short-integer" type for WSP pdu
|
boolean |
decodeTextString(int startIndex)
Decode the "Text-string" type for WSP pdu
|
boolean |
decodeTokenText(int startIndex)
Decode the "Token-text" type for WSP pdu
|
boolean |
decodeUintvarInteger(int startIndex)
Decode the "Uintvar-integer" type for WSP pdu
|
boolean |
decodeValueLength(int startIndex)
Decode the "Value-length" type for WSP pdu
|
boolean |
decodeXWapApplicationId(int startIndex)
Decode the "X-Wap-Application-Id" type for WSP pdu
|
boolean |
decodeXWapContentURI(int startIndex)
Decode the "X-Wap-Content-URI" type for WSP pdu
|
boolean |
decodeXWapInitiatorURI(int startIndex)
Decode the "X-Wap-Initiator-URI" type for WSP pdu
|
HashMap<String,String> |
getContentParameters()
Any parameters encountered as part of a decodeContentType() invocation.
|
int |
getDecodedDataLength()
The data length of latest operation.
|
long |
getValue32()
The 32-bits result of latest operation.
|
String |
getValueString()
The String result of latest operation.
|
boolean |
seekXWapApplicationId(int startIndex,
int endIndex)
Seek for the "X-Wap-Application-Id" field for WSP pdu
|
public static final int PDU_TYPE_PUSH
public static final int PDU_TYPE_CONFIRMED_PUSH
public static final int PARAMETER_ID_X_WAP_APPLICATION_ID
public static final String CONTENT_TYPE_B_PUSH_CO
public static final String CONTENT_TYPE_B_MMS
public static final String CONTENT_TYPE_B_PUSH_SYNCML_NOTI
public boolean decodeTextString(int startIndex)
startIndex
- The starting position of the "Text-string" in this pdupublic boolean decodeTokenText(int startIndex)
startIndex
- The starting position of the "Token-text" in this pdupublic boolean decodeShortInteger(int startIndex)
startIndex
- The starting position of the "Short-integer" in this pdupublic boolean decodeLongInteger(int startIndex)
startIndex
- The starting position of the "Long-integer" in this pdupublic boolean decodeIntegerValue(int startIndex)
startIndex
- The starting position of the "Integer-Value" in this pdupublic boolean decodeUintvarInteger(int startIndex)
startIndex
- The starting position of the "Uintvar-integer" in this pdupublic boolean decodeValueLength(int startIndex)
startIndex
- The starting position of the "Value-length" in this pdupublic boolean decodeExtensionMedia(int startIndex)
startIndex
- The starting position of the "Extension-media" in this PDU.public boolean decodeConstrainedEncoding(int startIndex)
startIndex
- The starting position of the "Constrained-encoding" in this pdupublic boolean decodeContentType(int startIndex)
startIndex
- The starting position of the "Content-type" in this pdupublic boolean decodeContentLength(int startIndex)
startIndex
- The starting position of the "Content length" in this pdupublic boolean decodeContentLocation(int startIndex)
startIndex
- The starting position of the "Content location" in this pdupublic boolean decodeXWapApplicationId(int startIndex)
startIndex
- The starting position of the "X-Wap-Application-Id" in this pdupublic boolean seekXWapApplicationId(int startIndex, int endIndex)
startIndex
- The starting position of seek pointerendIndex
- Valid seek area end pointpublic boolean decodeXWapContentURI(int startIndex)
startIndex
- The starting position of the "X-Wap-Content-URI" in this pdupublic boolean decodeXWapInitiatorURI(int startIndex)
startIndex
- The starting position of the "X-Wap-Initiator-URI" in this pdupublic int getDecodedDataLength()
public long getValue32()
public String getValueString()
public HashMap<String,String> getContentParameters()