org.jppf.serialization
Class JPPFObjectStreamBuilderImpl

java.lang.Object
  extended by org.jppf.serialization.JPPFObjectStreamBuilderImpl
All Implemented Interfaces:
JPPFObjectStreamBuilder

public class JPPFObjectStreamBuilderImpl
extends Object
implements JPPFObjectStreamBuilder

Standard object stream factory. This factory creates instances of ObjectInputStream and ObjectOutputStream

Author:
Laurent Cohen

Constructor Summary
JPPFObjectStreamBuilderImpl()
           
 
Method Summary
 ObjectInputStream newObjectInputStream(InputStream in)
          Obtain an input stream used for deserializing objects.
 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

JPPFObjectStreamBuilderImpl

public JPPFObjectStreamBuilderImpl()
Method Detail

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.
See Also:
JPPFObjectStreamBuilder.newObjectInputStream(java.io.InputStream)

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.
See Also:
JPPFObjectStreamBuilder.newObjectOutputStream(java.io.OutputStream)


Copyright © 2005-2010 JPPF Team.