Package org.jppf.serialization
Class DefaultJavaSerialization
java.lang.Object
org.jppf.serialization.DefaultJavaSerialization
- All Implemented Interfaces:
JPPFSerialization
This implementation uses the default Java serialization.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jppf.serialization.JPPFSerialization
JPPFSerialization.Factory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeserialize an object from the specified input stream.voidserialize(Object o, OutputStream os) Serialize an object into the specified output stream.
-
Constructor Details
-
DefaultJavaSerialization
public DefaultJavaSerialization()
-
-
Method Details
-
serialize
Description copied from interface:JPPFSerializationSerialize an object into the specified output stream.- Specified by:
serializein interfaceJPPFSerialization- Parameters:
o- the object to serialize.os- the stream that receives the serialized object.- Throws:
Exception- if any error occurs.
-
deserialize
Description copied from interface:JPPFSerializationDeserialize an object from the specified input stream.- Specified by:
deserializein interfaceJPPFSerialization- Parameters:
is- the stream from which to deserialize.- Returns:
- the serialized object.
- Throws:
Exception- if any error occurs.
-