org.jppf.serialization
Interface JPPFObjectStreamBuilder

All Known Implementing Classes:
GenericObjectStreamBuilder, JPPFConfigurationObjectStreamBuilder, JPPFObjectStreamBuilderImpl, XstreamObjectStreamBuilder

public interface JPPFObjectStreamBuilder

Interface for all builders instantiating alternate object input streams and output streams.

Author:
Laurent Cohen

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.
 

Method Detail

newObjectInputStream

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

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.