aa.tool
Class MessageObjectInputStream

java.lang.Object
  extended byjava.io.InputStream
      extended byjava.io.ObjectInputStream
          extended byaa.tool.MessageObjectInputStream
All Implemented Interfaces:
java.io.DataInput, java.io.ObjectInput, java.io.ObjectStreamConstants

public class MessageObjectInputStream
extends java.io.ObjectInputStream

This class defines a new object input stream for communication messages.

History:

Version:
$Date: 2008/01/01 00:23:57 $ $Revision: 1.1 $
Author:
Myeong-Wuk Jang

Nested Class Summary
 
Nested classes inherited from class java.io.ObjectInputStream
java.io.ObjectInputStream.GetField
 
Field Summary
 MessageClassLoader m_mslActorLoader
          Reference to new class loaderto handle the class of the actor
 
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
MessageObjectInputStream(java.io.InputStream p_is, java.lang.String p_strClassName, byte[] p_baClass)
          Creates an MessageObjectInputStream that reads form the specified InputStream.
 
Method Summary
 java.lang.Class resolveClass(java.io.ObjectStreamClass p_osc)
          Loads the local class equivalent of the specified stream class description.
 
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, 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

m_mslActorLoader

public MessageClassLoader m_mslActorLoader
Reference to new class loaderto handle the class of the actor

Constructor Detail

MessageObjectInputStream

public MessageObjectInputStream(java.io.InputStream p_is,
                                java.lang.String p_strClassName,
                                byte[] p_baClass)
                         throws java.io.IOException
Creates an MessageObjectInputStream that reads form the specified InputStream.

Parameters:
p_is - an input stream to read from.
p_strClassName - the class name.
p_baClass - an input byte stream of the class.
Throws:
java.io.IOException - if an input/output error occurs while readin stream header.
Method Detail

resolveClass

public java.lang.Class resolveClass(java.io.ObjectStreamClass p_osc)
                             throws java.io.IOException,
                                    java.lang.ClassNotFoundException
Loads the local class equivalent of the specified stream class description.

Parameters:
p_osc - an instance of class ObjectStreamClass.
Returns:
a Class object corresponding to desc.
Throws:
java.io.IOException - any of the usual iput/output exception.
java.lang.ClassNotFoundException - if class of a serialized object cannot be found.