org.apache.activemq.wireformat
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 ObjectStreamWireFormat()
public ByteSequence marshal(java.lang.Object command) throws java.io.IOException
WireFormat
marshal
in interface WireFormat
java.io.IOException
public java.lang.Object unmarshal(ByteSequence packet) throws java.io.IOException
WireFormat
unmarshal
in interface WireFormat
java.io.IOException
public void marshal(java.lang.Object command, java.io.DataOutput ds) throws java.io.IOException
WireFormat
marshal
in interface WireFormat
java.io.IOException
public java.lang.Object unmarshal(java.io.DataInput ds) throws java.io.IOException
WireFormat
unmarshal
in interface WireFormat
java.io.IOException
public void setVersion(int version)
setVersion
in interface WireFormat
public int getVersion()
getVersion
in interface WireFormat
Copyright © 2005-2014. All Rights Reserved.