All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class magician.Node.SPObjectOutputStream

java.lang.Object
   |
   +----java.io.OutputStream
           |
           +----java.io.ObjectOutputStream
                   |
                   +----magician.Node.SPObjectOutputStream

public class SPObjectOutputStream
extends ObjectOutputStream
This class implements the output stream that serializes the Smartpacket object for transmission

See Also:
OnTheWirepacket

Variable Index

 o annotatedClasses
classes that have been described
 o dest
active node to send the serialized object
 o OTWP
the associated OnTheWirePacket object
 o primitiveClasses
classes that are not transmitted over the wire
 o SPL
Smartpacket loader for this Smartpacket type

Constructor Index

 o SPObjectOutputStream(OutputStream)
initializes the output stream
 o SPObjectOutputStream(OutputStream, OnTheWirePacket, SmartPacketLoader, String)
initializes the output stream with additional information

Method Index

 o annotateClass(Class)
describes the class on the wire so that it can be defined in another active node's environment

Variables

 o primitiveClasses
 static Vector primitiveClasses
classes that are not transmitted over the wire

 o OTWP
 OnTheWirePacket OTWP
the associated OnTheWirePacket object

 o annotatedClasses
 UnsynchVector annotatedClasses
classes that have been described

 o SPL
 SmartPacketLoader SPL
Smartpacket loader for this Smartpacket type

See Also:
KUSmartPacketV2, SmartPacketLoader
 o dest
 String dest
active node to send the serialized object

Constructors

 o SPObjectOutputStream
 public SPObjectOutputStream(OutputStream out) throws IOException
initializes the output stream

Parameters:
out - the output stream
Throws: IOException
if the object cannot be written to the stream
 o SPObjectOutputStream
 public SPObjectOutputStream(OutputStream out,
                             OnTheWirePacket otwp,
                             SmartPacketLoader SPLoader,
                             String node) throws IOException
initializes the output stream with additional information

Parameters:
out - the output stream to write to
otwp - the OnTheWirePacket object
SPLoader - the SmartPacket loader for this type
node - the destination active node

Methods

 o annotateClass
 protected void annotateClass(Class cl)
describes the class on the wire so that it can be defined in another active node's environment

Parameters:
cl - class to be described
Overrides:
annotateClass in class ObjectOutputStream

All Packages  Class Hierarchy  This Package  Previous  Next  Index
1