packetNetworking
Class ObjectSender

java.lang.Object
  extended by packetNetworking.ObjectSender

public class ObjectSender
extends java.lang.Object


Constructor Summary
ObjectSender(java.io.PrintStream pw)
          The object sender only needs a printstream to stream to.
 
Method Summary
 void SendObject(java.io.Serializable object)
          Sends an object to the print stream
 byte[] Serialize(java.io.Serializable object)
          Encodes an object by turning it into bytes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectSender

public ObjectSender(java.io.PrintStream pw)
The object sender only needs a printstream to stream to. Arguments passed to the object sender is passed as method input

Parameters:
pw -
Method Detail

SendObject

public void SendObject(java.io.Serializable object)
Sends an object to the print stream

Parameters:
object -

Serialize

public byte[] Serialize(java.io.Serializable object)
Encodes an object by turning it into bytes

Parameters:
object -
Returns: