I have pretty huge DirectByteBuffer
and I would like to produce a gzipped DirectByteBuffer
from it without transferring its content to the heap.
The standard java.util.Deflater
cannot be helpful since it operates on byte[]
which is on-heap by definition.
Is there a way to do this in Java? Or I have to call libzip
directly through JNI
?