|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.io.InputStream
java.io.ObjectInputStream
com.ibm.aglets.AgletInputStream
An instance of this class reads objects from an input stream which contains class data with objects. The input stream contains objects, class data of these objects and class data of all super classes of these classes. Data in the input stream must be written by an instance of the AgletOutputStream.
This aglet input stream looks into the class loader cache of the AgletLoader and gets a class loader corresponding to the URL of an origin of the received class. If the class loader is not found in the cache, this stream will creates a new class loader and put it into the cache. After getting the class loader, this stream gets a class of the received object from the class cache of the class loader. If the class is not found in the class cache, the class loader will create the class.
AgletOutputStream,
AgletLoader| Nested Class Summary |
| Nested classes inherited from class java.io.ObjectInputStream |
java.io.ObjectInputStream.GetField |
| Field Summary | |
private ResourceManager |
rm
|
| Fields inherited from class java.io.ObjectInputStream |
|
| Fields inherited from class java.io.InputStream |
|
| Fields inherited from interface java.io.ObjectStreamConstants |
baseWireHandle, PROTOCOL_VERSION_1, PROTOCOL_VERSION_2, SC_BLOCK_DATA, 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_EXCEPTION, TC_LONGSTRING, TC_MAX, TC_NULL, TC_OBJECT, TC_PROXYCLASSDESC, TC_REFERENCE, TC_RESET, TC_STRING |
| Constructor Summary | |
AgletInputStream(java.io.InputStream in,
ResourceManager rm)
Create a new instance of this class. |
|
| Method Summary | |
protected void |
readStreamHeader()
|
java.lang.Class |
resolveClass(java.io.ObjectStreamClass classinfo)
Resolve a class specified by classname. |
| 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, readUnshared, readUnsignedByte, readUnsignedShort, readUTF, registerValidation, resolveObject, resolveProxyClass, 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 |
private ResourceManager rm
| Constructor Detail |
public AgletInputStream(java.io.InputStream in,
ResourceManager rm)
throws java.io.IOException
in - an input stream containing objests and class data.
java.io.IOException - if can not read data from the input stream.
java.io.StreamCorruptedException - if data in the input stream is
invalid.| Method Detail |
protected void readStreamHeader()
throws java.io.IOException,
java.io.StreamCorruptedException
java.io.IOException
java.io.StreamCorruptedException
public java.lang.Class resolveClass(java.io.ObjectStreamClass classinfo)
throws java.io.IOException,
java.lang.ClassNotFoundException
java.io.IOException - if can not read data from the input stream.
java.lang.ClassNotFoundException - if can not resolve the class.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||