org.apache.wicket.util.io
Class IObjectStreamFactory.DefaultObjectStreamFactory

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

public static final class IObjectStreamFactory.DefaultObjectStreamFactory
extends java.lang.Object
implements IObjectStreamFactory

Default implementation that uses the JDK's plain implementations.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.wicket.util.io.IObjectStreamFactory
IObjectStreamFactory.DefaultObjectStreamFactory
 
Constructor Summary
IObjectStreamFactory.DefaultObjectStreamFactory()
           
 
Method Summary
 java.io.ObjectInputStream newObjectInputStream(java.io.InputStream in)
          Gets a new instance of an ObjectInputStream with the provided InputStream.
 java.io.ObjectOutputStream newObjectOutputStream(java.io.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

IObjectStreamFactory.DefaultObjectStreamFactory

public IObjectStreamFactory.DefaultObjectStreamFactory()
Method Detail

newObjectInputStream

public java.io.ObjectInputStream newObjectInputStream(java.io.InputStream in)
                                               throws java.io.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:
java.io.IOException - if an I/O error occurs while reading stream header
See Also:
IObjectStreamFactory.newObjectInputStream(java.io.InputStream)

newObjectOutputStream

public java.io.ObjectOutputStream newObjectOutputStream(java.io.OutputStream out)
                                                 throws java.io.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:
java.io.IOException - if an I/O error occurs while writing stream header
See Also:
IObjectStreamFactory.newObjectOutputStream(java.io.OutputStream)


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