|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.activemq.transport.mqtt.MQTTWireFormat
public class MQTTWireFormat
Implements marshalling and unmarsalling the MQTT protocol.
| Constructor Summary | |
|---|---|
MQTTWireFormat()
|
|
| Method Summary | |
|---|---|
int |
getVersion()
|
ByteSequence |
marshal(Object command)
Packet based marshaling |
void |
marshal(Object command,
DataOutput dataOut)
Stream based marshaling |
void |
setVersion(int version)
|
Object |
unmarshal(ByteSequence packet)
Packet based un-marshaling |
Object |
unmarshal(DataInput dataIn)
Packet based un-marshaling |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MQTTWireFormat()
| Method Detail |
|---|
public ByteSequence marshal(Object command)
throws IOException
WireFormat
marshal in interface WireFormatIOException
public Object unmarshal(ByteSequence packet)
throws IOException
WireFormat
unmarshal in interface WireFormatIOException
public void marshal(Object command,
DataOutput dataOut)
throws IOException
WireFormat
marshal in interface WireFormatIOException
public Object unmarshal(DataInput dataIn)
throws IOException
WireFormat
unmarshal in interface WireFormatIOExceptionpublic void setVersion(int version)
setVersion in interface WireFormatthe - version of the wire formatpublic int getVersion()
getVersion in interface WireFormat
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||