org.apache.wicket.util.io
Class IObjectStreamFactory.DefaultObjectStreamFactory
java.lang.Object
org.apache.wicket.util.io.IObjectStreamFactory.DefaultObjectStreamFactory
- All Implemented Interfaces:
- IObjectStreamFactory
- Enclosing interface:
- IObjectStreamFactory
public static final class IObjectStreamFactory.DefaultObjectStreamFactory
- extends Object
- implements IObjectStreamFactory
Default implementation that uses the JDK's plain implementations.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IObjectStreamFactory.DefaultObjectStreamFactory
public IObjectStreamFactory.DefaultObjectStreamFactory()
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.