peer2me.message
Class ObjectOutputStream

java.lang.Object
  extended by peer2me.message.ObjectOutputStream

public class ObjectOutputStream
extends java.lang.Object

When a serialized object is added to a message, this class serializes it into a bytestream so that it can be sent over the network. This class calls the implemented serialize() method from the Serializable interface.

Author:
saxlund
See Also:
Serializable

Constructor Summary
ObjectOutputStream(java.lang.Object o, java.io.DataOutputStream ot)
          Constructor that starts serializing the object at once
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectOutputStream

public ObjectOutputStream(java.lang.Object o,
                          java.io.DataOutputStream ot)
Constructor that starts serializing the object at once

Parameters:
o - The object that will be serialized into a stream.
ot - The stream that the object will be serialized to