public interface CompressionCodec
| Modifier and Type | Method and Description |
|---|---|
byte |
code()
Return the code for this type of codec.
|
OutputStream |
compress(OutputStream target)
Creates an
OutputStream to compress data. |
InputStream |
decompress(InputStream source)
Creates an
InputStream to read decompressed data from. |
int |
maxCompressedLength(int sourceLength)
Provides the maximum compressed size from the source length.
|
int maxCompressedLength(int sourceLength)
sourceLength - size of plain, uncompressed dataOutputStream compress(OutputStream target)
OutputStream to compress data.target - the stream where compressed data will end upInputStream decompress(InputStream source)
InputStream to read decompressed data from.source - the stream to read compressed data frombyte code()
Copyright © 2022 VMware, Inc. or its affiliates.. All rights reserved.