org.apache.wicket.util.io
Class WicketObjectStreamFactory

java.lang.Object
  extended by org.apache.wicket.util.io.WicketObjectStreamFactory
All Implemented Interfaces:
IObjectStreamFactory

public class WicketObjectStreamFactory
extends Object
implements IObjectStreamFactory

Object stream factory for Wicket's custom serialization.

Author:
eelcohillenius
See Also:
WicketObjectInputStream, WicketObjectOutputStream

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.wicket.util.io.IObjectStreamFactory
IObjectStreamFactory.DefaultObjectStreamFactory
 
Constructor Summary
WicketObjectStreamFactory()
           
 
Method Summary
 ObjectInputStream newObjectInputStream(InputStream in)
          Gets a new instance of an ObjectInputStream with the provided InputStream.
 ObjectOutputStream newObjectOutputStream(OutputStream out)
          Gets a new instance of an ObjectOutputStream with the provided OutputStream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WicketObjectStreamFactory

public WicketObjectStreamFactory()
Method Detail

newObjectInputStream

public ObjectInputStream newObjectInputStream(InputStream in)
                                       throws IOException
Description copied from interface: IObjectStreamFactory
Gets a new instance of an ObjectInputStream with the provided InputStream.

Specified by:
newObjectInputStream in interface IObjectStreamFactory
Parameters:
in - The input stream that should be used for the reading
Returns:
a new object input stream instance
Throws:
IOException - if an I/O error occurs while reading stream header
See Also:
IObjectStreamFactory.newObjectInputStream(java.io.InputStream)

newObjectOutputStream

public ObjectOutputStream newObjectOutputStream(OutputStream out)
                                         throws IOException
Description copied from interface: IObjectStreamFactory
Gets a new instance of an ObjectOutputStream with the provided OutputStream.

Specified by:
newObjectOutputStream in interface IObjectStreamFactory
Parameters:
out - The output stream that should be used for the writing
Returns:
a new object output stream instance
Throws:
IOException - if an I/O error occurs while writing stream header
See Also:
IObjectStreamFactory.newObjectOutputStream(java.io.OutputStream)


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