Jadex 0.941

jadex.util
Class FixedObjectInputStream

java.lang.Object
  extended byjava.io.InputStream
      extended byjava.io.ObjectInputStream
          extended byjadex.util.FixedObjectInputStream
All Implemented Interfaces:
DataInput, ObjectInput, ObjectStreamConstants

public class FixedObjectInputStream
extends ObjectInputStream

Fixes JDK Bug 4932376.


Nested Class Summary
 
Nested classes inherited from class java.io.ObjectInputStream
ObjectInputStream.GetField
 
Field Summary
 
Fields inherited from interface java.io.ObjectStreamConstants
baseWireHandle, PROTOCOL_VERSION_1, PROTOCOL_VERSION_2, SC_BLOCK_DATA, SC_EXTERNALIZABLE, SC_SERIALIZABLE, SC_WRITE_METHOD, STREAM_MAGIC, STREAM_VERSION, SUBCLASS_IMPLEMENTATION_PERMISSION, SUBSTITUTION_PERMISSION, TC_ARRAY, TC_BASE, TC_BLOCKDATA, TC_BLOCKDATALONG, TC_CLASS, TC_CLASSDESC, TC_ENDBLOCKDATA, TC_EXCEPTION, TC_LONGSTRING, TC_MAX, TC_NULL, TC_OBJECT, TC_PROXYCLASSDESC, TC_REFERENCE, TC_RESET, TC_STRING
 
Constructor Summary
FixedObjectInputStream(InputStream stream)
          Construct a new instance of CustomObjectInputStream
 
Method Summary
 Class resolveClass(ObjectStreamClass classdesc)
          Load the local class equivalent of the specified stream class description, by using the class loader assigned to this Context.
 
Methods inherited from class java.io.ObjectInputStream
available, close, defaultReadObject, read, read, readBoolean, readByte, readChar, readDouble, readFields, readFloat, readFully, readFully, readInt, readLine, readLong, readObject, readShort, readUnshared, readUnsignedByte, readUnsignedShort, readUTF, registerValidation, skipBytes
 
Methods inherited from class java.io.InputStream
mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.io.ObjectInput
read, skip
 

Constructor Detail

FixedObjectInputStream

public FixedObjectInputStream(InputStream stream)
                       throws IOException
Construct a new instance of CustomObjectInputStream

Parameters:
stream - The input stream it will read from. //@param classloader The class loader used to instantiate objects.
Throws:
IOException - if an input/output error occurs
Method Detail

resolveClass

public Class resolveClass(ObjectStreamClass classdesc)
                   throws ClassNotFoundException,
                          IOException
Load the local class equivalent of the specified stream class description, by using the class loader assigned to this Context.

Parameters:
classdesc - Class description from the input stream
Throws:
ClassNotFoundException - if this class cannot be found
IOException - if an input/output error occurs

Jadex 0.941

Submit a bug or feature
For further API reference and developer documentation, see the Jadex User Guide and the Jadex Tutorial. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, and working code examples.

Copyright (C) 2002-2005 Lars Braubach, Alexander Pokahr, Andrzej Walczak - University of Hamburg. Use is subject to license terms.