public class ZstdDirectBufferCompressingStream
extends java.lang.Object
implements java.io.Closeable, java.io.Flushable
Modifier | Constructor and Description |
---|---|
protected |
ZstdDirectBufferCompressingStream(java.nio.ByteBuffer target,
int level) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
compress(java.nio.ByteBuffer source) |
protected void |
finalize() |
void |
flush() |
protected java.nio.ByteBuffer |
flushBuffer(java.nio.ByteBuffer toFlush)
This method should flush the buffer and either return the same buffer (but cleared) or a new buffer
that should be used from then on.
|
static int |
recommendedOutputBufferSize() |
protected ZstdDirectBufferCompressingStream(java.nio.ByteBuffer target, int level) throws java.io.IOException
java.io.IOException
protected java.nio.ByteBuffer flushBuffer(java.nio.ByteBuffer toFlush) throws java.io.IOException
toFlush
- buffer that has to be flushed (or most cases, you want to call Buffer.flip()
first)Buffer.clear()
.java.io.IOException
public static int recommendedOutputBufferSize()
public void compress(java.nio.ByteBuffer source) throws java.io.IOException
java.io.IOException
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable