|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.activeio.command.DefaultWireFormat
public class DefaultWireFormat
A default implementation which uses serialization
Constructor Summary | |
---|---|
DefaultWireFormat()
|
Method Summary | |
---|---|
int |
getVersion()
|
Packet |
marshal(Object command)
Packet based marshaling |
void |
marshal(Object command,
DataOutputStream ds)
Stream based marshaling |
void |
setVersion(int version)
|
Object |
unmarshal(DataInputStream ds)
Packet based un-marshaling |
Object |
unmarshal(Packet packet)
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 DefaultWireFormat()
Method Detail |
---|
public Packet marshal(Object command) throws IOException
WireFormat
marshal
in interface WireFormat
IOException
public Object unmarshal(Packet packet) throws IOException
WireFormat
unmarshal
in interface WireFormat
IOException
public void marshal(Object command, DataOutputStream ds) throws IOException
WireFormat
marshal
in interface WireFormat
IOException
public Object unmarshal(DataInputStream ds) throws IOException
WireFormat
unmarshal
in interface WireFormat
IOException
public void setVersion(int version)
setVersion
in interface WireFormat
public int getVersion()
getVersion
in interface WireFormat
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |