public abstract class MqttPersistableWireMessage extends MqttWireMessage implements MqttPersistable
duplicate, MESSAGE_TYPE_CONNACK, MESSAGE_TYPE_CONNECT, MESSAGE_TYPE_DISCONNECT, MESSAGE_TYPE_PINGREQ, MESSAGE_TYPE_PINGRESP, MESSAGE_TYPE_PUBACK, MESSAGE_TYPE_PUBCOMP, MESSAGE_TYPE_PUBLISH, MESSAGE_TYPE_PUBREC, MESSAGE_TYPE_PUBREL, MESSAGE_TYPE_SUBACK, MESSAGE_TYPE_SUBSCRIBE, MESSAGE_TYPE_UNSUBACK, MESSAGE_TYPE_UNSUBSCRIBE, msgId, STRING_ENCODING| Constructor and Description |
|---|
MqttPersistableWireMessage(byte type) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getHeaderBytes()
Returns the header bytes in an array.
|
int |
getHeaderLength()
Returns the length of the header.
|
int |
getHeaderOffset()
Returns the offset of the header within the byte array returned by
MqttPersistable.getHeaderBytes(). |
byte[] |
getPayloadBytes()
Returns the payload bytes in an array.
|
int |
getPayloadLength()
Returns the length of the payload.
|
int |
getPayloadOffset()
Returns the offset of the payload within the byte array returned by
MqttPersistable.getPayloadBytes(). |
createWireMessage, createWireMessage, decodeUTF8, encodeMBI, encodeMessageId, encodeUTF8, getHeader, getKey, getMessageId, getMessageInfo, getPayload, getType, getVariableHeader, isMessageIdRequired, isRetryable, readMBI, setDuplicate, setMessageId, toStringpublic byte[] getHeaderBytes()
throws MqttPersistenceException
MqttPersistableMqttPersistable.getHeaderOffset()
and continue for MqttPersistable.getHeaderLength().getHeaderBytes in interface MqttPersistableMqttPersistenceExceptionpublic int getHeaderLength()
throws MqttPersistenceException
MqttPersistablegetHeaderLength in interface MqttPersistableMqttPersistenceExceptionpublic int getHeaderOffset()
throws MqttPersistenceException
MqttPersistableMqttPersistable.getHeaderBytes().getHeaderOffset in interface MqttPersistableMqttPersistenceExceptionpublic byte[] getPayloadBytes()
throws MqttPersistenceException
MqttPersistableMqttPersistable.getPayloadOffset()
and continue for MqttPersistable.getPayloadLength().getPayloadBytes in interface MqttPersistableMqttPersistenceExceptionpublic int getPayloadLength()
throws MqttPersistenceException
MqttPersistablegetPayloadLength in interface MqttPersistableMqttPersistenceExceptionpublic int getPayloadOffset()
throws MqttPersistenceException
MqttPersistableMqttPersistable.getPayloadBytes().getPayloadOffset in interface MqttPersistableMqttPersistenceExceptionCopyright © 2017 Eclipse Paho. All Rights Reserved.