com.altair.hwm.toolkit.io
Class HWMObjectInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.ObjectInputStream
          extended by com.altair.hwm.toolkit.io.HWMObjectInputStream
All Implemented Interfaces:
java.io.Closeable, java.io.DataInput, java.io.ObjectInput, java.io.ObjectStreamConstants

public class HWMObjectInputStream
extends java.io.ObjectInputStream

Title: HWMObjectInputStream

Description: This class extends ObjectInputStream and is used to resolve the class by using HWMClassLoader while deserializing the bean instances that are part of the HWMComponent Suite.

Company: Altair Engineering, Inc.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.io.ObjectInputStream
java.io.ObjectInputStream.GetField
 
Field Summary
 
Fields inherited from interface java.io.ObjectStreamConstants
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 Summary
HWMObjectInputStream(java.io.InputStream in, HWMClassLoader hwmClassLoader)
          Constructor.
 
Method Summary
 HWMClassLoader GetClassLoader()
          Get the class loader
 void SetClassLoader(HWMClassLoader hwmClassLoader)
          Set the class loader
 
Methods inherited from class java.io.ObjectInputStream
available, close, defaultReadObject, read, read, readBoolean, readByte, readChar, readDouble, readFields, readFloat, readFully, readFully, readInt, readLine, readLong, readObject, readShort, readUnshared, readUnsignedByte, readUnsignedShort, readUTF, registerValidation, skipBytes
 
Methods inherited from class java.io.InputStream
mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.io.ObjectInput
read, skip
 

Constructor Detail

HWMObjectInputStream

public HWMObjectInputStream(java.io.InputStream in,
                            HWMClassLoader hwmClassLoader)
                     throws java.io.StreamCorruptedException,
                            java.io.IOException
Constructor.

Parameters:
in - The input stream to read from
hwmClassLoader - The class loader to use
Throws:
java.io.StreamCorruptedException
java.io.IOException
Method Detail

SetClassLoader

public void SetClassLoader(HWMClassLoader hwmClassLoader)
Set the class loader

Parameters:
HWMClasslOader - hwmClassLoader The new class loader to use

GetClassLoader

public HWMClassLoader GetClassLoader()
Get the class loader

Returns:
HWMClasslOader The class loader used by this stream