public class ObjectStreamWireFormat extends java.lang.Object implements WireFormat
| Constructor and Description |
|---|
ObjectStreamWireFormat() |
| 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 ds)
Stream based marshaling
|
void |
setVersion(int version) |
java.lang.Object |
unmarshal(ByteSequence packet)
Packet based un-marshaling
|
java.lang.Object |
unmarshal(java.io.DataInput ds)
Packet based un-marshaling
|
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 ds)
throws java.io.IOException
WireFormatmarshal in interface WireFormatjava.io.IOExceptionpublic java.lang.Object unmarshal(java.io.DataInput ds)
throws java.io.IOException
WireFormatunmarshal in interface WireFormatjava.io.IOExceptionpublic void setVersion(int version)
setVersion in interface WireFormatpublic int getVersion()
getVersion in interface WireFormatCopyright © 2005-2014 Red Hat, Inc.. All Rights Reserved.