| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| pack-priv ZstdDirectBufferCompressingStreamNoFinalizer |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized void | close()
Implements java. |
| public synchronized void | |
| protected void | finalize()
Overrides java. |
| public synchronized void | flush()
Implements java. |
| protected ByteBuffer | Returns: the new buffer to use, for most cases the same as the one passed in, after a call toByteBuffer#clear().buffer that has to be flushed (or most cases, you want to call toFlush)ByteBuffer#flip() first)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. |
| public static int | |
| public synchronized ZstdDirectBufferCompressingStream | |
| public synchronized ZstdDirectBufferCompressingStream | |
| public void | setFinalize(boolean
default `true` - finalizers are enabled finalize)Enable or disable class finalizers If finalizers are disabled the responsibility fir calling the `close` method is on the consumer. |
| finalize | back to summary |
|---|---|
| private boolean finalize | |
| inner | back to summary |
|---|---|
| pack-priv ZstdDirectBufferCompressingStreamNoFinalizer inner | |
| ZstdDirectBufferCompressingStream | back to summary |
|---|---|
| public ZstdDirectBufferCompressingStream(ByteBuffer target, int level) throws IOException | |
| close | back to summary |
|---|---|
| public synchronized void close() throws IOException Implements java. Doc from java. Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect. As noted in
| |
| compress | back to summary |
|---|---|
| public synchronized void compress(ByteBuffer source) throws IOException | |
| finalize | back to summary |
|---|---|
| protected void finalize() throws Throwable Overrides java. Doc from java. Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
A subclass overrides the
When running in a Java virtual machine in which finalization has been
disabled or removed, the garbage collector will never call
The general contract of
The
The Java programming language does not guarantee which thread will
invoke the
After the
The
Any exception thrown by the | |
| flush | back to summary |
|---|---|
| public synchronized void flush() throws IOException Implements java. Doc from java. Flushes this stream by writing any buffered output to the underlying stream.
| |
| flushBuffer | back to summary |
|---|---|
| protected ByteBuffer flushBuffer(ByteBuffer toFlush) throws IOException 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.
| |
| recommendedOutputBufferSize | back to summary |
|---|---|
| public static int recommendedOutputBufferSize() | |
| setDict | back to summary |
|---|---|
| public synchronized ZstdDirectBufferCompressingStream setDict(byte[] dict) throws IOException | |
| setDict | back to summary |
|---|---|
| public synchronized ZstdDirectBufferCompressingStream setDict(ZstdDictCompress dict) throws IOException | |
| setFinalize | back to summary |
|---|---|
| public void setFinalize(boolean finalize) Enable or disable class finalizers If finalizers are disabled the responsibility fir calling the `close` method is on the consumer.
| |