|
||||||||||
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()
|
Packet |
marshal(Object command)
Packet based marshaling |
void |
marshal(Object command,
DataOutputStream out)
Stream based marshaling |
void |
setVersion(int version)
|
Object |
unmarshal(DataInputStream in)
Packet based un-marshaling |
Object |
unmarshal(Packet packet)
Packet based un-marshaling |
Method Detail |
---|
Packet marshal(Object command) throws IOException
IOException
Object unmarshal(Packet packet) throws IOException
IOException
void marshal(Object command, DataOutputStream out) throws IOException
IOException
Object unmarshal(DataInputStream in) throws IOException
IOException
void 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 |