|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
java.io.ObjectInputStream
org.apache.axis2.context.externalize.ObjectInputStreamWithCL
public class ObjectInputStreamWithCL
An ObjectInputStream that is constructed with a ClassLoader or ClassResolver. The default behavior is to use the ContextClassLoader
Nested Class Summary | |
---|---|
static interface |
ObjectInputStreamWithCL.ClassResolver
This interface is used to resolve OSGi declared serializable classes. |
Nested classes/interfaces inherited from class java.io.ObjectInputStream |
---|
ObjectInputStream.GetField |
Field Summary | |
---|---|
protected ClassLoader |
classloader
|
protected String |
name
|
protected ObjectInputStreamWithCL.ClassResolver |
resolver
The class resolver |
Constructor Summary | |
---|---|
ObjectInputStreamWithCL(InputStream is)
Construct using ContextClassLoader |
|
ObjectInputStreamWithCL(InputStream is,
ClassLoader cl)
Constructor that accepts a ClassLoader |
|
ObjectInputStreamWithCL(InputStream is,
ObjectInputStreamWithCL.ClassResolver r)
Constructor that accepts a ClassResolver |
Method Summary | |
---|---|
protected Class |
resolveClass(ObjectStreamClass objStrmClass)
Override resolveClass so that we can use our own ClassLoader |
protected Class |
resolveProxyClass(String[] interfaces)
Override to provide our own resolution |
Methods inherited from class java.io.ObjectInputStream |
---|
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, skipBytes |
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, toString, wait, wait, wait |
Methods inherited from interface java.io.ObjectInput |
---|
read, skip |
Field Detail |
---|
protected ObjectInputStreamWithCL.ClassResolver resolver
protected ClassLoader classloader
protected String name
Constructor Detail |
---|
public ObjectInputStreamWithCL(InputStream is) throws IOException
is
-
IOException
public ObjectInputStreamWithCL(InputStream is, ClassLoader cl) throws IOException
is
- cl
-
IOException
public ObjectInputStreamWithCL(InputStream is, ObjectInputStreamWithCL.ClassResolver r) throws IOException
is
- r
- ClassResolver
IOException
Method Detail |
---|
protected Class resolveClass(ObjectStreamClass objStrmClass) throws ClassNotFoundException
resolveClass
in class ObjectInputStream
ClassNotFoundException
protected Class resolveProxyClass(String[] interfaces) throws ClassNotFoundException
resolveProxyClass
in class ObjectInputStream
ClassNotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |