|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface WireFormat
Provides a mechanism to marshal commands into and out of packets or into and out of streams, Channels and Datagrams.
| Method Summary | |
|---|---|
int |
getVersion()
|
ByteSequence |
marshal(Object command)
Packet based marshaling |
void |
marshal(Object command,
DataOutput out)
Stream based marshaling |
void |
setVersion(int version)
|
Object |
unmarshal(ByteSequence packet)
Packet based un-marshaling |
Object |
unmarshal(DataInput in)
Packet based un-marshaling |
| Method Detail |
|---|
ByteSequence marshal(Object command)
throws IOException
IOException
Object unmarshal(ByteSequence packet)
throws IOException
IOException
void marshal(Object command,
DataOutput out)
throws IOException
IOException
Object unmarshal(DataInput in)
throws IOException
IOExceptionvoid setVersion(int version)
the - version of the wire formatint getVersion()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||