@ParametersAreNonnullByDefault public class DefaultDataCompressor extends Object implements DataCompressor
InputStreamSource
using Snappy
if it is safe otherwise falling back to trusted
java.util.zip
.Constructor and Description |
---|
DefaultDataCompressor() |
Modifier and Type | Method and Description |
---|---|
byte[] |
compress(byte[] buffer) |
InputStreamSource |
compress(InputStreamSource uncompressed) |
byte[] |
uncompress(byte[] buffer) |
InputStreamSource |
uncompress(InputStreamSource compressed) |
public InputStreamSource uncompress(InputStreamSource compressed)
uncompress
in interface DataCompressor
public InputStreamSource compress(InputStreamSource uncompressed)
compress
in interface DataCompressor
public byte[] uncompress(byte[] buffer)
uncompress
in interface DataCompressor
public byte[] compress(byte[] buffer)
compress
in interface DataCompressor
Copyright © 2003–2020 Atlassian. All rights reserved.