org.jboss.netty.handler.codec.serialization
Class ObjectDecoderInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.ObjectInputStream
          extended by org.jboss.netty.handler.codec.serialization.ObjectDecoderInputStream
All Implemented Interfaces:
java.io.Closeable, java.io.DataInput, java.io.ObjectInput, java.io.ObjectStreamConstants

public class ObjectDecoderInputStream
extends java.io.ObjectInputStream

An ObjectInput which is interoperable with ObjectEncoder and ObjectEncoderOutputStream.

Version:
$Rev: 628 $, $Date: 2009-01-05 20:06:00 -0600 (Mon, 05 Jan 2009) $
Author:
The Netty Project (netty-dev@lists.jboss.org), Trustin Lee (tlee@redhat.com)

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
ObjectDecoderInputStream(java.io.DataInputStream in, java.lang.ClassLoader classLoader, int maxObjectSize)
           
 
Method Summary
 void close()
           
protected  java.lang.Object readObjectOverride()
           
 
Methods inherited from class java.io.ObjectInputStream
available, defaultReadObject, enableResolveObject, read, read, readBoolean, readByte, readChar, readClassDescriptor, readDouble, readFields, readFloat, readFully, readFully, readInt, readLine, readLong, readObject, readShort, readStreamHeader, readUnshared, readUnsignedByte, readUnsignedShort, readUTF, registerValidation, resolveClass, 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
 

Constructor Detail

ObjectDecoderInputStream

public ObjectDecoderInputStream(java.io.DataInputStream in,
                                java.lang.ClassLoader classLoader,
                                int maxObjectSize)
                         throws java.lang.SecurityException,
                                java.io.IOException
Throws:
java.lang.SecurityException
java.io.IOException
Method Detail

readObjectOverride

protected final java.lang.Object readObjectOverride()
                                             throws java.io.IOException,
                                                    java.lang.ClassNotFoundException
Overrides:
readObjectOverride in class java.io.ObjectInputStream
Throws:
java.io.IOException
java.lang.ClassNotFoundException

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Specified by:
close in interface java.io.ObjectInput
Overrides:
close in class java.io.ObjectInputStream
Throws:
java.io.IOException


Copyright © 2009. All Rights Reserved.