| java.lang.Object java.io.InputStream java.io.ObjectInputStream org.ow2.easybeans.util.marshalling.CtxClassLoaderObjectInputStream
CtxClassLoaderObjectInputStream | public class CtxClassLoaderObjectInputStream extends ObjectInputStream (Code) | | Reader which set the context classloader when recreating the object.
author: Florent Benoit |
Method Summary | |
protected Class> | resolveClass(ObjectStreamClass desc) Load the local class equivalent of the specified stream class
description. | protected Class> | resolveProxyClass(String[] interfacesName) Returns a proxy class that implements the interfaces named in a proxy
class descriptor; subclasses may implement this method to read custom
data from the stream along with the descriptors for dynamic proxy
classes, allowing them to use an alternate loading mechanism for the
interfaces and the proxy class. |
CtxClassLoaderObjectInputStream | public CtxClassLoaderObjectInputStream(InputStream inputStream) throws IOException(Code) | | This inputstream reader needs an input stream for its constructor.
Parameters: inputStream - input stream containing bytes throws: IOException - if super class fails |
resolveProxyClass | protected Class> resolveProxyClass(String[] interfacesName) throws IOException, ClassNotFoundException(Code) | | Returns a proxy class that implements the interfaces named in a proxy
class descriptor; subclasses may implement this method to read custom
data from the stream along with the descriptors for dynamic proxy
classes, allowing them to use an alternate loading mechanism for the
interfaces and the proxy class.
Parameters: interfacesName - the list of interface names that were deserialized inthe proxy class descriptor a proxy class for the specified interfaces throws: IOException - any exception thrown by the underlyingInputStream throws: ClassNotFoundException - if the proxy class or any of the namedinterfaces could not be found See Also: java.io.ObjectOutputStream.annotateProxyClass(Class) since: 1.3 |
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)
|
|
|