org.jppf.serialization
Class JPPFObjectStreamFactory
java.lang.Object
org.jppf.serialization.JPPFObjectStreamFactory
public class JPPFObjectStreamFactory
- extends Object
This class builds object streams based on JPPF configuration properties.
- Author:
- Laurent Cohen
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JPPFObjectStreamFactory
public JPPFObjectStreamFactory()
newObjectInputStream
public static ObjectInputStream newObjectInputStream(InputStream in)
throws Exception
- Obtain an input stream used for deserializing objects.
- Parameters:
in - input stream to read from.
- Returns:
- an
ObjectInputStream
- Throws:
Exception - if an error is raised while creating the stream.
newObjectOutputStream
public static ObjectOutputStream newObjectOutputStream(OutputStream out)
throws Exception
- Obtain an Output stream used for serializing objects.
- 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.