org.apache.turbine.util.pool
Class ObjectInputStreamForContext

java.lang.Object
  |
  +--java.io.InputStream
        |
        +--java.io.ObjectInputStream
              |
              +--org.apache.turbine.util.pool.ObjectInputStreamForContext
All Implemented Interfaces:
java.io.DataInput, java.io.ObjectInput, java.io.ObjectStreamConstants

public class ObjectInputStreamForContext
extends java.io.ObjectInputStream

A deserialization stream for a specific class loader context.

Version:
$Id$
Author:
Ilkka Priha

Inner classes inherited from class java.io.ObjectInputStream
java.io.ObjectInputStream.GetField, java.io.ObjectInputStream.GetFieldImpl
 
Field Summary
private  java.lang.ClassLoader classLoader
          The class loader of the context.
 
Fields inherited from class java.io.ObjectInputStream
abortClassNotFoundException, abortIOException, blockDataMode, buf, bufpos, bufsize, callbacks, cdata, CDATA_MAX_LEN, classdesc, classes, count, currCode, currentClass, currentClassDesc, currentGetFields, currentObject, data, dis, enableResolve, enableSubclassImplementation, in, nextWireOffset, readObjectArglist, recursionDepth, sbuf, spClass, wireHandle2Object
 
Fields inherited from class java.io.InputStream
SKIP_BUFFER_SIZE, skipBuffer
 
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
ObjectInputStreamForContext(java.io.InputStream in, java.lang.ClassLoader loader)
          Contructs a new object stream for a context.
 
Method Summary
protected  java.lang.Class resolveClass(java.io.ObjectStreamClass v)
           
 
Methods inherited from class java.io.ObjectInputStream
allocateNewArray, allocateNewObject, assignWireOffset, available, bufferData, bytesToDoubles, bytesToFloats, close, defaultReadObject, doValidations, enableResolveObject, ensureBufferCapacity, growClassStacks, inputArray, inputClassDescriptor, inputClassFields, inputObject, inputProxyClassDescriptor, invokeObjectReader, latestUserDefinedLoader, loadClass0, peekCode, pushbackCode, read, read, readBoolean, readByte, readChar, readClassDescriptor, readCode, readDouble, readFields, readFloat, readFully, readFully, readFullyInternal, readInt, readLine, readLong, readObject, readObject, readObjectOverride, readShort, readStreamHeader, readUnsignedByte, readUnsignedShort, readUTF, readUTFBody, refill, registerValidation, resetStream, resolveObject, resolveProxyClass, setBlockData, setObjectFieldValue, setPrimitiveFieldValues, skipBytes, skipToEndOfBlockData
 
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, registerNatives, toString, wait, wait, wait
 
Methods inherited from interface java.io.ObjectInput
read, skip
 
Methods inherited from interface java.io.ObjectStreamConstants
 

Field Detail

classLoader

private java.lang.ClassLoader classLoader
The class loader of the context.
Constructor Detail

ObjectInputStreamForContext

public ObjectInputStreamForContext(java.io.InputStream in,
                                   java.lang.ClassLoader loader)
                            throws java.io.IOException
Contructs a new object stream for a context.
Parameters:
in - the serialized input stream.
loader - the class loader of the context.
Throws:
java.io.IOException - on errors.
Method Detail

resolveClass

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


Copyright © 1999-2001 Apache Software Foundation. All Rights Reserved.