| java.lang.Object java.io.InputStream java.io.ObjectInputStream org.apache.catalina.util.CustomObjectInputStream
CustomObjectInputStream | final public class CustomObjectInputStream extends ObjectInputStream (Code) | | 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.
author: Craig R. McClanahan author: Bip Thelin version: $Revision: 467222 $, $Date: 2006-10-24 05:17:11 +0200 (mar., 24 oct. 2006) $ |
Method Summary | |
public Class | resolveClass(ObjectStreamClass classDesc) 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) Return a proxy class that implements the interfaces named in a proxy
class descriptor. |
CustomObjectInputStream | public CustomObjectInputStream(InputStream stream, ClassLoader classLoader) throws IOException(Code) | | Construct a new instance of CustomObjectInputStream
Parameters: stream - The input stream we will read from Parameters: classLoader - The class loader used to instantiate objects exception: IOException - if an input/output error occurs |
resolveProxyClass | protected Class resolveProxyClass(String[] interfaces) throws IOException, ClassNotFoundException(Code) | | Return a proxy class that implements the interfaces named in a proxy
class descriptor. Do this using the class loader assigned to this
Context.
|
Methods inherited from java.io.ObjectInputStream | public int available() throws IOException(Code)(Java Doc) public void close() throws IOException(Code)(Java Doc) public void defaultReadObject() throws IOException, ClassNotFoundException(Code)(Java Doc) protected boolean enableResolveObject(boolean enable) throws SecurityException(Code)(Java Doc) public int read() throws IOException(Code)(Java Doc) public int read(byte[] buf, int off, int len) throws IOException(Code)(Java Doc) public boolean readBoolean() throws IOException(Code)(Java Doc) public byte readByte() throws IOException(Code)(Java Doc) public char readChar() throws IOException(Code)(Java Doc) protected ObjectStreamClass readClassDescriptor() throws IOException, ClassNotFoundException(Code)(Java Doc) public double readDouble() throws IOException(Code)(Java Doc) public ObjectInputStream.GetField readFields() throws IOException, ClassNotFoundException(Code)(Java Doc) public float readFloat() throws IOException(Code)(Java Doc) public void readFully(byte[] buf) throws IOException(Code)(Java Doc) public void readFully(byte[] buf, int off, int len) throws IOException(Code)(Java Doc) public int readInt() throws IOException(Code)(Java Doc) public String readLine() throws IOException(Code)(Java Doc) public long readLong() throws IOException(Code)(Java Doc) final public Object readObject() throws IOException, ClassNotFoundException(Code)(Java Doc) protected Object readObjectOverride() throws IOException, ClassNotFoundException(Code)(Java Doc) public short readShort() throws IOException(Code)(Java Doc) protected void readStreamHeader() throws IOException, StreamCorruptedException(Code)(Java Doc) public String readUTF() throws IOException(Code)(Java Doc) public Object readUnshared() throws IOException, ClassNotFoundException(Code)(Java Doc) public int readUnsignedByte() throws IOException(Code)(Java Doc) public int readUnsignedShort() throws IOException(Code)(Java Doc) public void registerValidation(ObjectInputValidation obj, int prio) throws NotActiveException, InvalidObjectException(Code)(Java Doc) protected Class> resolveClass(ObjectStreamClass desc) throws IOException, ClassNotFoundException(Code)(Java Doc) protected Object resolveObject(Object obj) throws IOException(Code)(Java Doc) protected Class> resolveProxyClass(String[] interfaces) throws IOException, ClassNotFoundException(Code)(Java Doc) public int skipBytes(int len) throws IOException(Code)(Java Doc)
|
|
|