SilverStream
Application Server 3.5

com.sssw.rt.util
Class AgoObjectInputStream

java.lang.Object
 |
 +--java.io.InputStream
       |
       +--java.io.ObjectInputStream
             |
             +--com.sssw.rt.util.AgoObjectInputStream
All Implemented Interfaces:
DataInput, ObjectInput, ObjectStreamConstants
Direct Known Subclasses:
AgoObjectInputStreamWithLoader

public class AgoObjectInputStream
extends ObjectInputStream

This subclass of ObjectInputStream delegates loading of classes to an existing ClassLoader. Due to way the SilverStream server manages classloaders, you must use this class to deserialize objects on the server, rather than java.io.ObjectInputStream. Note that you can use the standard java.io.OutputStream to save serialized objects.

For an example of using this Class in an invoked business object, see Triggered Objects Basics in the Programmer's Guide.


Inner classes inherited from class java.io.ObjectInputStream
ObjectInputStream.GetField
 
Constructor Summary
AgoObjectInputStream(InputStream in)
          Constructor.
AgoObjectInputStream(InputStream in, ClassLoader loader)
          Constructor.
 
Methods inherited from class java.io.ObjectInputStream
available, close, defaultReadObject, enableResolveObject, read, read, readBoolean, readByte, readChar, readDouble, readFields, readFloat, readFully, readFully, readInt, readLine, readLong, readObject, readObjectOverride, readShort, readStreamHeader, readUnsignedByte, readUnsignedShort, readUTF, registerValidation, resolveClass, resolveObject, skipBytes
 
Methods inherited from class java.io.InputStream
mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AgoObjectInputStream

public AgoObjectInputStream(InputStream in)
                     throws IOException,
                            StreamCorruptedException
Constructor.

AgoObjectInputStream

public AgoObjectInputStream(InputStream in,
                            ClassLoader loader)
                     throws IOException,
                            StreamCorruptedException
Constructor.

SilverStream
Application Server 3.5