org.jppf.serialization
Class GenericObjectStreamBuilder
java.lang.Object
org.jppf.serialization.GenericObjectStreamBuilder
- All Implemented Interfaces:
- JPPFObjectStreamBuilder
public class GenericObjectStreamBuilder
- extends Object
- implements JPPFObjectStreamBuilder
This the factory for the JPPF implementation of object streams which allow
the serialization and deserialization of objects whose class does not implemnent java.io.Serializable.
- Author:
- Laurent Cohen
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GenericObjectStreamBuilder
public GenericObjectStreamBuilder()
newObjectInputStream
public ObjectInputStream newObjectInputStream(InputStream in)
throws Exception
- Obtain an input stream used for deserializing objects.
- Specified by:
newObjectInputStream in interface JPPFObjectStreamBuilder
- Parameters:
in - input stream to read from.
- Returns:
- an
ObjectInputStream
- Throws:
Exception - if an error is raised while creating the stream.
newObjectOutputStream
public ObjectOutputStream newObjectOutputStream(OutputStream out)
throws Exception
- Obtain an Output stream used for serializing objects.
- Specified by:
newObjectOutputStream in interface JPPFObjectStreamBuilder
- Parameters:
out - output stream to write to.
- Returns:
- an
ObjectOutputStream
- Throws:
Exception - if an error is raised while creating the stream.
Copyright © 2005-2010 JPPF Team.