Save This Page
Home » apache-tomcat-6.0.16-src » org.apache » catalina » util » [javadoc | source]
org.apache.catalina.util
public final class: CustomObjectInputStream [javadoc | source]
java.lang.Object
   java.io.InputStream
      java.io.ObjectInputStream
         org.apache.catalina.util.CustomObjectInputStream

All Implemented Interfaces:
    ObjectStreamConstants, ObjectInput, Closeable

Custom subclass of ObjectInputStream that loads from the class loader for this web application. This allows classes defined only with the web application to be found correctly.
Constructor:
 public CustomObjectInputStream(InputStream stream,
    ClassLoader classLoader) throws IOException 
    Construct a new instance of CustomObjectInputStream
    Parameters:
    stream - The input stream we will read from
    classLoader - The class loader used to instantiate objects
    Throws:
    IOException - if an input/output error occurs
    exception: IOException - if an input/output error occurs
Method from org.apache.catalina.util.CustomObjectInputStream Summary:
resolveClass,   resolveProxyClass
Methods from java.io.ObjectInputStream:
available,   close,   defaultReadObject,   read,   read,   readBoolean,   readByte,   readChar,   readDouble,   readFields,   readFloat,   readFully,   readFully,   readInt,   readLine,   readLong,   readObject,   readShort,   readUTF,   readUnshared,   readUnsignedByte,   readUnsignedShort,   registerValidation,   skipBytes
Methods from java.io.InputStream:
available,   close,   mark,   markSupported,   read,   read,   read,   reset,   skip
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.catalina.util.CustomObjectInputStream Detail:
 public Class resolveClass(ObjectStreamClass classDesc) throws IOException, ClassNotFoundException 
    Load the local class equivalent of the specified stream class description, by using the class loader assigned to this Context.
 protected Class resolveProxyClass(String[] interfaces) throws ClassNotFoundException, IOException 
    Return a proxy class that implements the interfaces named in a proxy class descriptor. Do this using the class loader assigned to this Context.