public class ComponentObjectInputStream
extends java.io.ObjectInputStream
ObjectInputStream uses the context classloader of the
current thread instead of the last used classloader like the
ObjectInputStream. Executable components should always use this
stream instead of ObjectInputStream or there may be trouble with
the classloader, resp. the classpath of the classes required for the stream.baseWireHandle, PROTOCOL_VERSION_1, PROTOCOL_VERSION_2, SC_BLOCK_DATA, SC_ENUM, 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_ENUM, TC_EXCEPTION, TC_LONGSTRING, TC_MAX, TC_NULL, TC_OBJECT, TC_PROXYCLASSDESC, TC_REFERENCE, TC_RESET, TC_STRING| Constructor and Description |
|---|
ComponentObjectInputStream(java.io.InputStream in) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.ClassLoader |
getLoader()
Gets the context classloader of the current thread.
|
protected java.lang.Class<?> |
resolveClass(java.io.ObjectStreamClass desc) |
protected java.lang.Class<?> |
resolveProxyClass(java.lang.String[] interfaces) |
available, close, defaultReadObject, enableResolveObject, read, read, readBoolean, readByte, readChar, readClassDescriptor, readDouble, readFields, readFloat, readFully, readFully, readInt, readLine, readLong, readObject, readObjectOverride, readShort, readStreamHeader, readUnshared, readUnsignedByte, readUnsignedShort, readUTF, registerValidation, resolveObject, skipBytespublic ComponentObjectInputStream(java.io.InputStream in)
throws java.io.IOException
java.io.IOExceptionObjectInputStream.ObjectInputStream(InputStream)protected java.lang.Class<?> resolveClass(java.io.ObjectStreamClass desc)
throws java.io.IOException,
java.lang.ClassNotFoundException
resolveClass in class java.io.ObjectInputStreamjava.io.IOExceptionjava.lang.ClassNotFoundExceptionprotected java.lang.Class<?> resolveProxyClass(java.lang.String[] interfaces)
throws java.io.IOException,
java.lang.ClassNotFoundException
resolveProxyClass in class java.io.ObjectInputStreamjava.io.IOExceptionjava.lang.ClassNotFoundExceptionprotected java.lang.ClassLoader getLoader()