| Modifier and Type | Field and Description |
|---|---|
| private ZstdOutputStreamNoFinalizer |
| Access | Constructor and Description |
|---|---|
| public | ZstdOutputStream(OutputStream outStream, int level, boolean closeFrameOnFlush, boolean useChecksums)
Deprecated
Use ZstdOutputStream() or ZstdOutputStream(level) and set the other params with the setters
|
| public | ZstdOutputStream(OutputStream outStream, int level, boolean closeFrameOnFlush)
Deprecated
Use ZstdOutputStream() or ZstdOutputStream(level) and set the other params with the setters
|
| public | ZstdOutputStream(OutputStream
the stream to wrap outStream, int the compression level level)create a new compressing OutputStream |
| public | |
| public | ZstdOutputStream(OutputStream
the stream to wrap outStream, BufferPool the pool to fetch and return buffers bufferPool, int level)create a new compressing OutputStream |
| public | ZstdOutputStream(OutputStream
the stream to wrap outStream, BufferPool the pool to fetch and return buffers bufferPool)create a new compressing OutputStream |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Overrides java. Implements java. |
| protected void | finalize()
Overrides java. |
| public void | flush()
Overrides java. Implements java. |
| public static long | |
| public ZstdOutputStream | setChainLog(int chainLog)
Advanced Compression Option: Set the maximum number of bits for the secondary search structure. |
| public ZstdOutputStream | |
| public ZstdOutputStream | |
| public ZstdOutputStream | |
| public ZstdOutputStream | |
| public void | setFinalize(boolean
default `true` - finalizers are enabled finalize)
Deprecated
If you don't rely on finalizers, use `ZstdOutputStreamNoFinalizer` instead.
Enable or disable class finalizers
If finalizers are disabled the responsibility fir calling the `close` method is on the consumer.
|
| public ZstdOutputStream | setHashLog(int hashLog)
Advanced Compression Option: Set the maximum number of bits for a hash table. |
| public ZstdOutputStream | |
| public ZstdOutputStream | |
| public ZstdOutputStream | |
| public ZstdOutputStream | |
| public ZstdOutputStream | setOverlapLog(int overlapLog)
Advanced Compression Option: Set the amount of data reloaded from the previous job. |
| public ZstdOutputStream | setSearchLog(int searchLog)
Advanced Compression Option: Set the maximum number of searches in a hash chain or a binary tree using logarithmic scale. |
| public ZstdOutputStream | |
| public ZstdOutputStream | |
| public ZstdOutputStream | setWindowLog(int windowLog)
Advanced Compression Option: Set the maximum number of bits for a match distance. |
| public ZstdOutputStream | |
| public void | write(byte[]
the data. src, int the start offset in the data. offset, int the number of bytes to write. len)Overrides java. len bytes from the specified
byte array starting at offset off to
this output stream.
|
| public void | write(int
the i)byte.Overrides java. byte to this output stream.
|
| inner | back to summary |
|---|---|
| private ZstdOutputStreamNoFinalizer inner | |
| ZstdOutputStream | back to summary |
|---|---|
| public ZstdOutputStream(OutputStream outStream, int level, boolean closeFrameOnFlush, boolean useChecksums) throws IOException
Deprecated Use ZstdOutputStream() or ZstdOutputStream(level) and set the other params with the setters
| |
| ZstdOutputStream | back to summary |
|---|---|
| public ZstdOutputStream(OutputStream outStream, int level, boolean closeFrameOnFlush) throws IOException
Deprecated Use ZstdOutputStream() or ZstdOutputStream(level) and set the other params with the setters
| |
| ZstdOutputStream | back to summary |
|---|---|
| public ZstdOutputStream(OutputStream outStream, int level) throws IOException create a new compressing OutputStream
| |
| ZstdOutputStream | back to summary |
|---|---|
| public ZstdOutputStream(OutputStream outStream) throws IOException create a new compressing OutputStream
| |
| ZstdOutputStream | back to summary |
|---|---|
| public ZstdOutputStream(OutputStream outStream, BufferPool bufferPool, int level) throws IOException create a new compressing OutputStream
| |
| ZstdOutputStream | back to summary |
|---|---|
| public ZstdOutputStream(OutputStream outStream, BufferPool bufferPool) throws IOException create a new compressing OutputStream
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. Doc from java. Closes this output stream and releases any system resources associated with the stream.
| |
| 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 void flush() throws IOException Overrides java. Implements java. Flushes the output
| |
| recommendedCOutSize | back to summary |
|---|---|
| public static long recommendedCOutSize() | |
| setChainLog | back to summary |
|---|---|
| public ZstdOutputStream setChainLog(int chainLog) throws IOException Advanced Compression Option: Set the maximum number of bits for the secondary search structure. See https://facebook.github.io/zstd/zstd_manual.html#Chapter5 for more information. | |
| setChecksum | back to summary |
|---|---|
| public ZstdOutputStream setChecksum(boolean useChecksums) throws IOException Enable checksums for the compressed stream. Default: false | |
| setCloseFrameOnFlush | back to summary |
|---|---|
| public ZstdOutputStream setCloseFrameOnFlush(boolean closeOnFlush) Enable closing the frame on flush. This will guarantee that it can be ready fully if the process crashes before closing the stream. On the downside it will negatively affect the compression ratio. Default: false. | |
| setDict | back to summary |
|---|---|
| public ZstdOutputStream setDict(byte[] dict) throws IOException | |
| setDict | back to summary |
|---|---|
| public ZstdOutputStream setDict(ZstdDictCompress dict) throws IOException | |
| setFinalize | back to summary |
|---|---|
| public void setFinalize(boolean finalize)
Deprecated If you don't rely on finalizers, use `ZstdOutputStreamNoFinalizer` instead. Enable or disable class finalizers If finalizers are disabled the responsibility fir calling the `close` method is on the consumer.
| |
| setHashLog | back to summary |
|---|---|
| public ZstdOutputStream setHashLog(int hashLog) throws IOException Advanced Compression Option: Set the maximum number of bits for a hash table. See https://facebook.github.io/zstd/zstd_manual.html#Chapter5 for more information. | |
| setJobSize | back to summary |
|---|---|
| public ZstdOutputStream setJobSize(int jobSize) throws IOException Advanced Compression Option: Set the size of each compression job. Only applies when multi threaded compression is enabled. See https://facebook.github.io/zstd/zstd_manual.html#Chapter5 for more information. | |
| setLevel | back to summary |
|---|---|
| public ZstdOutputStream setLevel(int level) throws IOException Set the compression level.
Default: | |
| setLong | back to summary |
|---|---|
| public ZstdOutputStream setLong(int windowLog) throws IOException Set the Long Distance Matching. Values for windowLog outside the range 10-27 will disable and reset LDM | |
| setMinMatch | back to summary |
|---|---|
| public ZstdOutputStream setMinMatch(int minMatch) throws IOException Advanced Compression Option: Set the minimum match length. See https://facebook.github.io/zstd/zstd_manual.html#Chapter5 for more information. | |
| setOverlapLog | back to summary |
|---|---|
| public ZstdOutputStream setOverlapLog(int overlapLog) throws IOException Advanced Compression Option: Set the amount of data reloaded from the previous job. See https://facebook.github.io/zstd/zstd_manual.html#Chapter5 for more information. | |
| setSearchLog | back to summary |
|---|---|
| public ZstdOutputStream setSearchLog(int searchLog) throws IOException Advanced Compression Option: Set the maximum number of searches in a hash chain or a binary tree using logarithmic scale. See https://facebook.github.io/zstd/zstd_manual.html#Chapter5 for more information. | |
| setStrategy | back to summary |
|---|---|
| public ZstdOutputStream setStrategy(int strategy) throws IOException Advanced Compression Option: Set the strategy used by a match finder. See https://facebook.github.io/zstd/zstd_manual.html#Chapter5 for more information. | |
| setTargetLength | back to summary |
|---|---|
| public ZstdOutputStream setTargetLength(int targetLength) throws IOException Advanced Compression Option: Set the target match length. See https://facebook.github.io/zstd/zstd_manual.html#Chapter5 for more information. | |
| setWindowLog | back to summary |
|---|---|
| public ZstdOutputStream setWindowLog(int windowLog) throws IOException Advanced Compression Option: Set the maximum number of bits for a match distance. See https://facebook.github.io/zstd/zstd_manual.html#Chapter5 for more information. | |
| setWorkers | back to summary |
|---|---|
| public ZstdOutputStream setWorkers(int n) throws IOException Enable use of worker threads for parallel compression. Default: no worker threads. | |
| write | back to summary |
|---|---|
| public void write(byte[] src, int offset, int len) throws IOException Overrides java. Doc from java. Writes
| |
| write | back to summary |
|---|---|
| public void write(int i) throws IOException Overrides java. Doc from java. Writes the specified
The
Implements the abstract
| |