Package org.jppf.serialization
Class LZ4Serialization
java.lang.Object
org.jppf.serialization.JPPFCompositeSerialization
org.jppf.serialization.LZ4Serialization
- All Implemented Interfaces:
JPPFSerialization
A composite serialization scheme which applies a LZ4 compression/decompression to a concrete
JPPFSerialization implementation.
See also: LZ4 home.
- Author:
- Laurent Cohen
-
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.getName()Get the name given to this composite serialization.voidserialize(Object o, OutputStream os) Serialize an object into the specified output stream.Methods inherited from class org.jppf.serialization.JPPFCompositeSerialization
getDelegate
-
Constructor Details
-
LZ4Serialization
public LZ4Serialization()
-
-
Method Details
-
serialize
Description copied from interface:JPPFSerializationSerialize an object into the specified output stream.- 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.- Parameters:
is- the stream from which to deserialize.- Returns:
- the serialized object.
- Throws:
Exception- if any error occurs.
-
getName
Description copied from class:JPPFCompositeSerializationGet the name given to this composite serialization. The name is case-insensitive and must be unique among all defined composite serializations, otherwise it will either override, or be overriden by, a serialization with the same name.- Specified by:
getNamein classJPPFCompositeSerialization- Returns:
- the name of this composite serialization.
-