public static class CompressionUtils.XerialSnappyCompressionCodec extends Object implements CompressionCodec
| Constructor and Description |
|---|
XerialSnappyCompressionCodec() |
| Modifier and Type | Method and Description |
|---|---|
byte |
code()
Return the code for this type of codec.
|
OutputStream |
compress(OutputStream outputStream)
Creates an
OutputStream to compress data. |
InputStream |
decompress(InputStream inputStream)
Creates an
InputStream to read decompressed data from. |
int |
maxCompressedLength(int sourceLength)
Provides the maximum compressed size from the source length.
|
String |
toString() |
public int maxCompressedLength(int sourceLength)
CompressionCodecmaxCompressedLength in interface CompressionCodecsourceLength - size of plain, uncompressed datapublic OutputStream compress(OutputStream outputStream)
CompressionCodecOutputStream to compress data.compress in interface CompressionCodecoutputStream - the stream where compressed data will end uppublic InputStream decompress(InputStream inputStream)
CompressionCodecInputStream to read decompressed data from.decompress in interface CompressionCodecinputStream - the stream to read compressed data frompublic byte code()
CompressionCodeccode in interface CompressionCodecCopyright © 2021 VMware, Inc. or its affiliates.. All rights reserved.