public class MQTTWireFormat extends java.lang.Object implements WireFormat
| Constructor and Description |
|---|
MQTTWireFormat() |
| Modifier and Type | Method and Description |
|---|---|
int |
getVersion() |
ByteSequence |
marshal(java.lang.Object command)
Packet based marshaling
|
void |
marshal(java.lang.Object command,
java.io.DataOutput dataOut)
Stream based marshaling
|
void |
setVersion(int version) |
java.lang.Object |
unmarshal(ByteSequence packet)
Packet based un-marshaling
|
java.lang.Object |
unmarshal(java.io.DataInput dataIn)
Packet based un-marshaling
|
public MQTTWireFormat()
public ByteSequence marshal(java.lang.Object command) throws java.io.IOException
WireFormatmarshal in interface WireFormatjava.io.IOExceptionpublic java.lang.Object unmarshal(ByteSequence packet) throws java.io.IOException
WireFormatunmarshal in interface WireFormatjava.io.IOExceptionpublic void marshal(java.lang.Object command, java.io.DataOutput dataOut) throws java.io.IOException
WireFormatmarshal in interface WireFormatjava.io.IOExceptionpublic java.lang.Object unmarshal(java.io.DataInput dataIn) throws java.io.IOException
WireFormatunmarshal in interface WireFormatjava.io.IOExceptionpublic void setVersion(int version)
setVersion in interface WireFormatthe - version of the wire formatpublic int getVersion()
getVersion in interface WireFormatCopyright © 2005-2012. All Rights Reserved.