java.lang.Object
org.activemq.message.PacketFacade
- All Implemented Interfaces:
- java.io.Externalizable, java.io.Serializable
- public class PacketFacade
- extends java.lang.Object
- implements java.io.Externalizable
A helper class for using Packet instances with object serialization
- Version:
- $Revision: 1.1.1.1 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
wireFormat
private static final org.activemq.io.WireFormat wireFormat
packet
private transient Packet packet
PacketFacade
public PacketFacade()
PacketFacade
public PacketFacade(Packet packet)
getPacket
public Packet getPacket()
writeExternal
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
- Description copied from interface:
java.io.Externalizable
- This method is responsible for writing the instance data of an object
to the passed in stream. Note that this stream is not a subclass of
OutputStream
, but rather is a class that implements the
ObjectOutput
interface. That interface provides a
number of methods
for writing Java data values to a stream.
Not that the implementation of this method must be coordinated with
the implementation of readExternal
.
- Specified by:
writeExternal
in interface java.io.Externalizable
readExternal
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
- Description copied from interface:
java.io.Externalizable
- This method restores an object's state by reading in the instance data
for the object from the passed in stream. Note that this stream is not
a subclass of
InputStream
, but rather is a class that
implements
the ObjectInput
interface. That interface provides a
mechanism for
reading in Java data types from a stream.
Note that this method must be compatible with writeExternal
.
It must read back the exact same types that were written by that
method in the exact order they were written.
If this method needs to read back an object instance, then the class
for that object must be found and loaded. If that operation fails,
then this method throws a ClassNotFoundException
- Specified by:
readExternal
in interface java.io.Externalizable