|
||||||||||
| 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 WireFormatIOException
public Object unmarshal(Packet packet)
throws IOException
WireFormat
unmarshal in interface WireFormatIOException
public void marshal(Object command,
DataOutputStream ds)
throws IOException
WireFormat
marshal in interface WireFormatIOException
public Object unmarshal(DataInputStream ds)
throws IOException
WireFormat
unmarshal in interface WireFormatIOExceptionpublic void setVersion(int version)
setVersion in interface WireFormatpublic int getVersion()
getVersion in interface WireFormat
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||