org.apache.wicket.util.io
Class WicketObjectInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.ObjectInputStream
          extended by org.apache.wicket.util.io.WicketObjectInputStream
All Implemented Interfaces:
Closeable, DataInput, ObjectInput, ObjectStreamConstants

Deprecated. in Wicket 1.5 the (de)serializator is a pluggable piece, if some customization is needed see the new framework settings

@Deprecated
public final class WicketObjectInputStream
extends ObjectInputStream

Author:
jcompagner

Nested Class Summary
 
Nested classes/interfaces inherited from class java.io.ObjectInputStream
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
WicketObjectInputStream(InputStream in)
          Deprecated. Construct.
 
Method Summary
 void close()
          Deprecated.  
 void defaultReadObject()
          Deprecated.  
 int read()
          Deprecated.  
 int read(byte[] b)
          Deprecated.  
 int read(byte[] buf, int off, int len)
          Deprecated.  
 boolean readBoolean()
          Deprecated. Reads in a boolean.
 byte readByte()
          Deprecated. Reads an 8 bit byte.
 char readChar()
          Deprecated. Reads a 16 bit char.
 double readDouble()
          Deprecated. Reads a 64 bit double.
 ObjectInputStream.GetField readFields()
          Deprecated.  
 float readFloat()
          Deprecated. Reads a 32 bit float.
 void readFully(byte[] buf)
          Deprecated. Reads bytes, blocking until all bytes are read.
 void readFully(byte[] buf, int off, int len)
          Deprecated. Reads bytes, blocking until all bytes are read.
 int readInt()
          Deprecated. Reads a 32 bit int.
 long readLong()
          Deprecated. Reads a 64 bit long.
protected  Object readObjectOverride()
          Deprecated.  
 short readShort()
          Deprecated. Reads a 16 bit short.
 int readUnsignedByte()
          Deprecated. Reads an unsigned 8 bit byte.
 int readUnsignedShort()
          Deprecated. Reads an unsigned 16 bit short.
 String readUTF()
          Deprecated.  
 
Methods inherited from class java.io.ObjectInputStream
available, enableResolveObject, readClassDescriptor, readLine, readObject, readStreamHeader, readUnshared, registerValidation, resolveClass, resolveObject, resolveProxyClass, skipBytes
 
Methods inherited from class java.io.InputStream
mark, markSupported, 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
skip
 

Constructor Detail

WicketObjectInputStream

public WicketObjectInputStream(InputStream in)
                        throws IOException
Deprecated. 
Construct.

Parameters:
in -
Throws:
IOException
Method Detail

readObjectOverride

protected Object readObjectOverride()
                             throws IOException,
                                    ClassNotFoundException
Deprecated. 
Overrides:
readObjectOverride in class ObjectInputStream
Throws:
IOException
ClassNotFoundException
See Also:
ObjectInputStream.readObjectOverride()

defaultReadObject

public void defaultReadObject()
                       throws IOException,
                              ClassNotFoundException
Deprecated. 
Overrides:
defaultReadObject in class ObjectInputStream
Throws:
IOException
ClassNotFoundException
See Also:
ObjectInputStream.defaultReadObject()

close

public void close()
           throws IOException
Deprecated. 
Specified by:
close in interface Closeable
Specified by:
close in interface ObjectInput
Overrides:
close in class ObjectInputStream
Throws:
IOException
See Also:
ObjectInputStream.close()

readBoolean

public boolean readBoolean()
                    throws IOException
Deprecated. 
Reads in a boolean.

Specified by:
readBoolean in interface DataInput
Overrides:
readBoolean in class ObjectInputStream
Returns:
the boolean read.
Throws:
EOFException - If end of file is reached.
IOException - If other I/O error has occurred.

readByte

public byte readByte()
              throws IOException
Deprecated. 
Reads an 8 bit byte.

Specified by:
readByte in interface DataInput
Overrides:
readByte in class ObjectInputStream
Returns:
the 8 bit byte read.
Throws:
EOFException - If end of file is reached.
IOException - If other I/O error has occurred.

readUnsignedByte

public int readUnsignedByte()
                     throws IOException
Deprecated. 
Reads an unsigned 8 bit byte.

Specified by:
readUnsignedByte in interface DataInput
Overrides:
readUnsignedByte in class ObjectInputStream
Returns:
the 8 bit byte read.
Throws:
EOFException - If end of file is reached.
IOException - If other I/O error has occurred.

readChar

public char readChar()
              throws IOException
Deprecated. 
Reads a 16 bit char.

Specified by:
readChar in interface DataInput
Overrides:
readChar in class ObjectInputStream
Returns:
the 16 bit char read.
Throws:
EOFException - If end of file is reached.
IOException - If other I/O error has occurred.

readShort

public short readShort()
                throws IOException
Deprecated. 
Reads a 16 bit short.

Specified by:
readShort in interface DataInput
Overrides:
readShort in class ObjectInputStream
Returns:
the 16 bit short read.
Throws:
EOFException - If end of file is reached.
IOException - If other I/O error has occurred.

readUnsignedShort

public int readUnsignedShort()
                      throws IOException
Deprecated. 
Reads an unsigned 16 bit short.

Specified by:
readUnsignedShort in interface DataInput
Overrides:
readUnsignedShort in class ObjectInputStream
Returns:
the 16 bit short read.
Throws:
EOFException - If end of file is reached.
IOException - If other I/O error has occurred.

readInt

public int readInt()
            throws IOException
Deprecated. 
Reads a 32 bit int.

Specified by:
readInt in interface DataInput
Overrides:
readInt in class ObjectInputStream
Returns:
the 32 bit integer read.
Throws:
EOFException - If end of file is reached.
IOException - If other I/O error has occurred.

readLong

public long readLong()
              throws IOException
Deprecated. 
Reads a 64 bit long.

Specified by:
readLong in interface DataInput
Overrides:
readLong in class ObjectInputStream
Returns:
the read 64 bit long.
Throws:
EOFException - If end of file is reached.
IOException - If other I/O error has occurred.

readFloat

public float readFloat()
                throws IOException
Deprecated. 
Reads a 32 bit float.

Specified by:
readFloat in interface DataInput
Overrides:
readFloat in class ObjectInputStream
Returns:
the 32 bit float read.
Throws:
EOFException - If end of file is reached.
IOException - If other I/O error has occurred.

readDouble

public double readDouble()
                  throws IOException
Deprecated. 
Reads a 64 bit double.

Specified by:
readDouble in interface DataInput
Overrides:
readDouble in class ObjectInputStream
Returns:
the 64 bit double read.
Throws:
EOFException - If end of file is reached.
IOException - If other I/O error has occurred.

readFully

public void readFully(byte[] buf)
               throws IOException
Deprecated. 
Reads bytes, blocking until all bytes are read.

Specified by:
readFully in interface DataInput
Overrides:
readFully in class ObjectInputStream
Parameters:
buf - the buffer into which the data is read
Throws:
EOFException - If end of file is reached.
IOException - If other I/O error has occurred.

readFully

public void readFully(byte[] buf,
                      int off,
                      int len)
               throws IOException
Deprecated. 
Reads bytes, blocking until all bytes are read.

Specified by:
readFully in interface DataInput
Overrides:
readFully in class ObjectInputStream
Parameters:
buf - the buffer into which the data is read
off - the start offset of the data
len - the maximum number of bytes to read
Throws:
EOFException - If end of file is reached.
IOException - If other I/O error has occurred.

readUTF

public String readUTF()
               throws IOException
Deprecated. 
Specified by:
readUTF in interface DataInput
Overrides:
readUTF in class ObjectInputStream
Throws:
IOException
See Also:
ObjectInputStream.readUTF()

read

public int read()
         throws IOException
Deprecated. 
Specified by:
read in interface ObjectInput
Overrides:
read in class ObjectInputStream
Throws:
IOException
See Also:
ObjectInputStream.read()

read

public int read(byte[] b)
         throws IOException
Deprecated. 
Specified by:
read in interface ObjectInput
Overrides:
read in class InputStream
Throws:
IOException
See Also:
InputStream.read(byte[])

read

public int read(byte[] buf,
                int off,
                int len)
         throws IOException
Deprecated. 
Specified by:
read in interface ObjectInput
Overrides:
read in class ObjectInputStream
Throws:
IOException
See Also:
ObjectInputStream.read(byte[], int, int)

readFields

public ObjectInputStream.GetField readFields()
                                      throws IOException,
                                             ClassNotFoundException
Deprecated. 
Overrides:
readFields in class ObjectInputStream
Throws:
IOException
ClassNotFoundException
See Also:
ObjectInputStream.readFields()


Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.