Save This Page
Home » jboss-5.0.0.CR1-src » org » jboss » util » stream » [javadoc | source]
org.jboss.util.stream
public class: CustomObjectInputStreamWithClassloader [javadoc | source]
java.lang.Object
   java.io.InputStream
      java.io.ObjectInputStream
         org.jboss.util.stream.CustomObjectInputStreamWithClassloader

All Implemented Interfaces:
    ObjectStreamConstants, ObjectInput, Closeable

Customized object input stream that
Field Summary
 ClassLoader cl    The classloader to use when the default classloader cannot find the classes in the stream. 
Constructor:
 public CustomObjectInputStreamWithClassloader(InputStream in,
    ClassLoader cl) throws IOException 
    Constructs a new instance with the given classloader and input stream.
    Parameters:
    in - stream to read objects from
    cl - classloader to use
Method from org.jboss.util.stream.CustomObjectInputStreamWithClassloader Summary:
readClassDescriptor,   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.jboss.util.stream.CustomObjectInputStreamWithClassloader Detail:
 protected ObjectStreamClass readClassDescriptor() throws ClassNotFoundException, IOException 
    Reads just the class name from this input stream.
 protected Class resolveClass(ObjectStreamClass classdesc) throws ClassNotFoundException, IOException 
    Resolves the class described in the classdesc parameter. First, try the default classloader (implemented by the super class). If it cannot load the class, try the classloader given to this instance.
 protected Class resolveProxyClass(String[] interfaces) throws ClassNotFoundException, IOException 
    Resolves the proxy class for the specified array of interfaces.