|Constructor and Description|
|Modifier and Type||Method and Description|
Compresses the given
The difference between this method and
public BufferCompressor(int bufferSize, String factoryName)
public Buffer compressToIntermediateBuffer(Buffer buffer)
BlockCompressor. The compressed data will be stored in the intermediate buffer of this
BufferCompressorand returned to the caller. The caller must guarantee that the returned
Bufferhas been freed when calling the method next time.
Notes that the compression will always start from offset 0 to the size of the input
public Buffer compressToOriginalBuffer(Buffer buffer)
compressToIntermediateBuffer(Buffer)is that this method will copy the compressed data back to the input
Bufferstarting from offset 0.
The caller must guarantee that the input
Buffer is writable.
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.