jclass
Class SmartObjectInputStream

java.lang.Object
  |
  +--java.io.InputStream
        |
        +--java.io.ObjectInputStream
              |
              +--jclass.SmartObjectInputStream

public class SmartObjectInputStream
extends java.io.ObjectInputStream

This stream basically deals with the automatic class loading issues that require that on both sides of a connection there should be a description of the transfered object class available. This is a problem if the remote side has a older version etc.

This stream works only in cooperation with a peer SmartObjectOutputStream.

NOT IMPLEMENTED YET !!! (USE IT AS SIMPLE OBJECTSTREAM)

Written: Radu Sion
Version: 0.1
Source: SmartObjectInputStream.java

Visit Smart Software 


Inner classes inherited from class java.io.ObjectInputStream
java.io.ObjectInputStream.GetField
 
Constructor Summary
SmartObjectInputStream(java.io.InputStream in)
           
 
Method Summary
 void enableResolveClass(boolean how)
          This basically enables or disables the main facility of this class.
protected  java.lang.Class resolveClass(java.io.ObjectStreamClass v)
           
 
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, 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

SmartObjectInputStream

public SmartObjectInputStream(java.io.InputStream in)
                       throws java.io.IOException,
                              java.io.StreamCorruptedException
Method Detail

enableResolveClass

public void enableResolveClass(boolean how)
This basically enables or disables the main facility of this class. If this is set to false then this class behaves like a simple ObjectInputStream.
Parameters:
how - If true then enable the resolve facility, otherwise leave default

resolveClass

protected java.lang.Class resolveClass(java.io.ObjectStreamClass v)
                                throws java.io.IOException,
                                       java.lang.ClassNotFoundException
Overrides:
resolveClass in class java.io.ObjectInputStream