org.apache.wicket.util.io
Class WicketObjectOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.ObjectOutputStream
          extended by org.apache.wicket.util.io.WicketObjectOutputStream
All Implemented Interfaces:
Closeable, DataOutput, Flushable, ObjectOutput, 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 WicketObjectOutputStream
extends ObjectOutputStream

The Wicket ObjectOutputStream to enable back-button support for the reloading mechanism, be sure to put Objects.setObjectStreamFactory(new WicketObjectStreamFactory()); in your application's WebApplication.init() method.

Author:
jcompagner
See Also:
ReloadingWicketFilter

Nested Class Summary
 
Nested classes/interfaces inherited from class java.io.ObjectOutputStream
ObjectOutputStream.PutField
 
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
WicketObjectOutputStream(OutputStream out)
          Deprecated. Construct.
 
Method Summary
 void close()
          Deprecated.  
 void defaultWriteObject()
          Deprecated.  
 ObjectOutputStream.PutField putFields()
          Deprecated.  
 void write(byte[] buf)
          Deprecated.  
 void write(byte[] buf, int off, int len)
          Deprecated.  
 void write(int val)
          Deprecated.  
 void writeBoolean(boolean val)
          Deprecated. Writes a boolean.
 void writeByte(int val)
          Deprecated. Writes an 8 bit byte.
 void writeBytes(String str)
          Deprecated. Writes a String as a sequence of bytes.
 void writeChar(int val)
          Deprecated. Writes a 16 bit char.
 void writeChars(String str)
          Deprecated. Writes a String as a sequence of chars.
 void writeDouble(double val)
          Deprecated. Writes a 64 bit double.
 void writeFields()
          Deprecated.  
 void writeFloat(float val)
          Deprecated. Writes a 32 bit float.
 void writeInt(int val)
          Deprecated. Writes a 32 bit int.
 void writeLong(long val)
          Deprecated. Writes a 64 bit long.
protected  void writeObjectOverride(Object obj)
          Deprecated.  
 void writeShort(int val)
          Deprecated. Writes a 16 bit short.
 void writeUTF(String str)
          Deprecated.  
 
Methods inherited from class java.io.ObjectOutputStream
annotateClass, annotateProxyClass, drain, enableReplaceObject, flush, replaceObject, reset, useProtocolVersion, writeClassDescriptor, writeObject, writeStreamHeader, writeUnshared
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WicketObjectOutputStream

public WicketObjectOutputStream(OutputStream out)
                         throws IOException
Deprecated. 
Construct.

Parameters:
out -
Throws:
IOException
Method Detail

close

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

defaultWriteObject

public void defaultWriteObject()
                        throws IOException
Deprecated. 
Overrides:
defaultWriteObject in class ObjectOutputStream
Throws:
IOException
See Also:
ObjectOutputStream.defaultWriteObject()

putFields

public ObjectOutputStream.PutField putFields()
                                      throws IOException
Deprecated. 
Overrides:
putFields in class ObjectOutputStream
Throws:
IOException
See Also:
ObjectOutputStream.putFields()

write

public void write(byte[] buf)
           throws IOException
Deprecated. 
Specified by:
write in interface DataOutput
Specified by:
write in interface ObjectOutput
Overrides:
write in class ObjectOutputStream
Throws:
IOException
See Also:
ObjectOutputStream.write(byte[])

write

public void write(byte[] buf,
                  int off,
                  int len)
           throws IOException
Deprecated. 
Specified by:
write in interface DataOutput
Specified by:
write in interface ObjectOutput
Overrides:
write in class ObjectOutputStream
Throws:
IOException
See Also:
ObjectOutputStream.write(byte[], int, int)

write

public void write(int val)
           throws IOException
Deprecated. 
Specified by:
write in interface DataOutput
Specified by:
write in interface ObjectOutput
Overrides:
write in class ObjectOutputStream
Throws:
IOException
See Also:
ObjectOutputStream.write(int)

writeBoolean

public void writeBoolean(boolean val)
                  throws IOException
Deprecated. 
Writes a boolean.

Specified by:
writeBoolean in interface DataOutput
Overrides:
writeBoolean in class ObjectOutputStream
Parameters:
val - the boolean to be written
Throws:
IOException - if I/O errors occur while writing to the underlying stream

writeByte

public void writeByte(int val)
               throws IOException
Deprecated. 
Writes an 8 bit byte.

Specified by:
writeByte in interface DataOutput
Overrides:
writeByte in class ObjectOutputStream
Parameters:
val - the byte value to be written
Throws:
IOException - if I/O errors occur while writing to the underlying stream

writeBytes

public void writeBytes(String str)
                throws IOException
Deprecated. 
Writes a String as a sequence of bytes.

Specified by:
writeBytes in interface DataOutput
Overrides:
writeBytes in class ObjectOutputStream
Parameters:
str - the String of bytes to be written
Throws:
IOException - if I/O errors occur while writing to the underlying stream

writeChar

public void writeChar(int val)
               throws IOException
Deprecated. 
Writes a 16 bit char.

Specified by:
writeChar in interface DataOutput
Overrides:
writeChar in class ObjectOutputStream
Parameters:
val - the char value to be written
Throws:
IOException - if I/O errors occur while writing to the underlying stream

writeChars

public void writeChars(String str)
                throws IOException
Deprecated. 
Writes a String as a sequence of chars.

Specified by:
writeChars in interface DataOutput
Overrides:
writeChars in class ObjectOutputStream
Parameters:
str - the String of chars to be written
Throws:
IOException - if I/O errors occur while writing to the underlying stream

writeDouble

public void writeDouble(double val)
                 throws IOException
Deprecated. 
Writes a 64 bit double.

Specified by:
writeDouble in interface DataOutput
Overrides:
writeDouble in class ObjectOutputStream
Parameters:
val - the double value to be written
Throws:
IOException - if I/O errors occur while writing to the underlying stream

writeFields

public void writeFields()
                 throws IOException
Deprecated. 
Overrides:
writeFields in class ObjectOutputStream
Throws:
IOException
See Also:
ObjectOutputStream.writeFields()

writeFloat

public void writeFloat(float val)
                throws IOException
Deprecated. 
Writes a 32 bit float.

Specified by:
writeFloat in interface DataOutput
Overrides:
writeFloat in class ObjectOutputStream
Parameters:
val - the float value to be written
Throws:
IOException - if I/O errors occur while writing to the underlying stream

writeInt

public void writeInt(int val)
              throws IOException
Deprecated. 
Writes a 32 bit int.

Specified by:
writeInt in interface DataOutput
Overrides:
writeInt in class ObjectOutputStream
Parameters:
val - the integer value to be written
Throws:
IOException - if I/O errors occur while writing to the underlying stream

writeLong

public void writeLong(long val)
               throws IOException
Deprecated. 
Writes a 64 bit long.

Specified by:
writeLong in interface DataOutput
Overrides:
writeLong in class ObjectOutputStream
Parameters:
val - the long value to be written
Throws:
IOException - if I/O errors occur while writing to the underlying stream

writeShort

public void writeShort(int val)
                throws IOException
Deprecated. 
Writes a 16 bit short.

Specified by:
writeShort in interface DataOutput
Overrides:
writeShort in class ObjectOutputStream
Parameters:
val - the short value to be written
Throws:
IOException - if I/O errors occur while writing to the underlying stream

writeUTF

public void writeUTF(String str)
              throws IOException
Deprecated. 
Specified by:
writeUTF in interface DataOutput
Overrides:
writeUTF in class ObjectOutputStream
Throws:
IOException
See Also:
ObjectOutputStream.writeUTF(java.lang.String)

writeObjectOverride

protected final void writeObjectOverride(Object obj)
                                  throws IOException
Deprecated. 
Overrides:
writeObjectOverride in class ObjectOutputStream
Throws:
IOException
See Also:
ObjectOutputStream.writeObjectOverride(java.lang.Object)


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