- All Implemented Interfaces:
- FSTCoder
- Direct Known Subclasses:
- MinBinCoder
public class DefaultCoder
extends Object
implements FSTCoder
Created by ruedi on 09.11.14.
Encodes Objects to byte arrays and vice versa using slight value compression and a platform neutral data
layout (no diff regarding big/little endian). Implementation is conservative (no unsafe)
As this makes use of the stream oriented API, operation is not zero copy. However this is not too significant
compared to cost of serialization.
KEEP and reuse instances, creation is expensive.
This class cannot be used concurrently.
Works similar to the unsafe coders, but does not use Unsafe. Note that reading and writing
coder must match each other in type and configuration.