public class JPPFConfigurationObjectStreamBuilder extends Object implements JPPFObjectStreamBuilder
ObjectInputStream
and ObjectOutputStream| Constructor and Description |
|---|
JPPFConfigurationObjectStreamBuilder()
Initialize this builder with the default
ObjectInputStream and ObjectOutputStream classes of the JDK. |
JPPFConfigurationObjectStreamBuilder(Class<?> oisClass,
Class<?> oosClass)
Initialize this builder with the specified object input and output stream classes.
|
JPPFConfigurationObjectStreamBuilder(String oisClassName,
String oosClassName)
Initialize this builder with the specified object input and output stream classes.
|
| Modifier and Type | Method and Description |
|---|---|
ObjectInputStream |
newObjectInputStream(InputStream in)
Obtain an input stream used for deserializing objects.
|
ObjectOutputStream |
newObjectOutputStream(OutputStream out)
Obtain an Output stream used for serializing objects.
|
public JPPFConfigurationObjectStreamBuilder()
throws Exception
ObjectInputStream and ObjectOutputStream classes of the JDK.Exception - if an error is raised while initializing.public JPPFConfigurationObjectStreamBuilder(Class<?> oisClass, Class<?> oosClass) throws Exception
oisClass - the object input stream class to use.oosClass - the object output stream class to use.Exception - if an error is raised while initializing.public JPPFConfigurationObjectStreamBuilder(String oisClassName, String oosClassName) throws Exception
oisClassName - the fully qualified name of the object input stream class to use.oosClassName - the fully qualified name of the object output stream class to use.Exception - if an error is raised while initializing.public ObjectInputStream newObjectInputStream(InputStream in) throws Exception
newObjectInputStream in interface JPPFObjectStreamBuilderin - input stream to read from.ObjectInputStreamException - if an error is raised while creating the stream.JPPFObjectStreamBuilder.newObjectInputStream(java.io.InputStream)public ObjectOutputStream newObjectOutputStream(OutputStream out) throws Exception
newObjectOutputStream in interface JPPFObjectStreamBuilderout - output stream to write to.ObjectOutputStreamException - if an error is raised while creating the stream.JPPFObjectStreamBuilder.newObjectOutputStream(java.io.OutputStream)Copyright © 2005-2012 JPPF Team.