Class SnappyDataCompressor
java.lang.Object
com.atlassian.confluence.internal.util.io.SnappyDataCompressor
- All Implemented Interfaces:
DataCompressor
@ParametersAreNonnullByDefault
public class SnappyDataCompressor
extends Object
implements DataCompressor
Snappy byte array format compression/decompression implementation of
DataCompressor
.- Since:
- 6.5
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
compress
(byte[] buffer) compress
(InputStreamSource uncompressed) byte[]
uncompress
(byte[] buffer) uncompress
(InputStreamSource compressed)
-
Constructor Details
-
SnappyDataCompressor
public SnappyDataCompressor()
-
-
Method Details
-
uncompress
- Specified by:
uncompress
in interfaceDataCompressor
-
compress
- Specified by:
compress
in interfaceDataCompressor
-
uncompress
public byte[] uncompress(byte[] buffer) - Specified by:
uncompress
in interfaceDataCompressor
-
compress
public byte[] compress(byte[] buffer) - Specified by:
compress
in interfaceDataCompressor
-