Package org.apache.activemq.wireformat
Class ObjectStreamWireFormat
java.lang.Object
org.apache.activemq.wireformat.ObjectStreamWireFormat
- All Implemented Interfaces:
WireFormat
A simple implementation which uses Object Stream serialization.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Packet based marshalingvoid
marshal
(Object command, DataOutput ds) Stream based marshalingvoid
setVersion
(int version) Packet based un-marshalingunmarshal
(ByteSequence packet) Packet based un-marshaling
-
Constructor Details
-
ObjectStreamWireFormat
public ObjectStreamWireFormat()
-
-
Method Details
-
marshal
Description copied from interface:WireFormat
Packet based marshaling- Specified by:
marshal
in interfaceWireFormat
- Throws:
IOException
-
unmarshal
Description copied from interface:WireFormat
Packet based un-marshaling- Specified by:
unmarshal
in interfaceWireFormat
- Throws:
IOException
-
marshal
Description copied from interface:WireFormat
Stream based marshaling- Specified by:
marshal
in interfaceWireFormat
- Throws:
IOException
-
unmarshal
Description copied from interface:WireFormat
Packet based un-marshaling- Specified by:
unmarshal
in interfaceWireFormat
- Throws:
IOException
-
setVersion
public void setVersion(int version) - Specified by:
setVersion
in interfaceWireFormat
- Parameters:
version
- the version of the wire format
-
getVersion
public int getVersion()- Specified by:
getVersion
in interfaceWireFormat
- Returns:
- the version of the wire format
-