public class ObjectStreamWireFormat extends Object implements WireFormat
Constructor and Description |
---|
ObjectStreamWireFormat() |
Modifier and Type | Method and Description |
---|---|
int |
getVersion() |
ByteSequence |
marshal(Object command)
Packet based marshaling
|
void |
marshal(Object command,
DataOutput ds)
Stream based marshaling
|
void |
setVersion(int version) |
Object |
unmarshal(ByteSequence packet)
Packet based un-marshaling
|
Object |
unmarshal(DataInput ds)
Packet based un-marshaling
|
public ObjectStreamWireFormat()
public ByteSequence marshal(Object command) throws IOException
WireFormat
marshal
in interface WireFormat
IOException
public Object unmarshal(ByteSequence packet) throws IOException
WireFormat
unmarshal
in interface WireFormat
IOException
public void marshal(Object command, DataOutput ds) throws IOException
WireFormat
marshal
in interface WireFormat
IOException
public Object unmarshal(DataInput 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
Copyright © 2005–2016 The Apache Software Foundation. All rights reserved.