org.jppf.serialization
Class JPPFObjectStreamFactory

java.lang.Object
  extended by org.jppf.serialization.JPPFObjectStreamFactory

public class JPPFObjectStreamFactory
extends Object

This class builds object streams based on JPPF configuration properties.

Author:
Laurent Cohen

Constructor Summary
JPPFObjectStreamFactory()
           
 
Method Summary
static ObjectInputStream newObjectInputStream(InputStream in)
          Obtain an input stream used for deserializing objects.
static ObjectOutputStream newObjectOutputStream(OutputStream out)
          Obtain an Output stream used for serializing objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JPPFObjectStreamFactory

public JPPFObjectStreamFactory()
Method Detail

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.