CompressorOutputStream implementation to create Zstandard encoded stream. Library relies on Zstandard
JNI
| Modifier and Type | Field and Description |
|---|---|
| private final ZstdOutputStream |
| Access | Constructor and Description |
|---|---|
| public | ZstdCompressorOutputStream(final OutputStream
the stream to write to outStream)Wraps the given stream into a zstd-jni ZstdOutputStream using the default values for |
| public | ZstdCompressorOutputStream(final OutputStream
the stream to write to outStream, final int value for zstd-jni's level argument level)Wraps the given stream into a zstd-jni ZstdOutputStream using the default values for |
| public | ZstdCompressorOutputStream(final OutputStream
the stream to write to outStream, final int value for zstd-jni's level argument level, final boolean value for zstd-jni's closeFrameOnFlush argument closeFrameOnFlush)Wraps the given stream into a zstd-jni ZstdOutputStream using the default value for |
| public | ZstdCompressorOutputStream(final OutputStream
the stream to write to outStream, final int value for zstd-jni's level argument level, final boolean value for zstd-jni's closeFrameOnFlush argument closeFrameOnFlush, final boolean value for zstd-jni's useChecksum argument useChecksum)Wraps the given stream into a zstd-jni ZstdOutputStream. |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Overrides java. Implements java. |
| public void | flush()
Overrides java. Implements java. |
| public String | |
| public void | write(final byte[]
the data. buf, final int the start offset in the data. off, final 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(final int
the b)byte.Implements abstract java. |
| encOS | back to summary |
|---|---|
| private final ZstdOutputStream encOS | |
| ZstdCompressorOutputStream | back to summary |
|---|---|
| public ZstdCompressorOutputStream(final OutputStream outStream) throws IOException Wraps the given stream into a zstd-jni ZstdOutputStream using the default values for
| |
| ZstdCompressorOutputStream | back to summary |
|---|---|
| public ZstdCompressorOutputStream(final OutputStream outStream, final int level) throws IOException Wraps the given stream into a zstd-jni ZstdOutputStream using the default values for
| |
| ZstdCompressorOutputStream | back to summary |
|---|---|
| public ZstdCompressorOutputStream(final OutputStream outStream, final int level, final boolean closeFrameOnFlush) throws IOException Wraps the given stream into a zstd-jni ZstdOutputStream using the default value for
| |
| ZstdCompressorOutputStream | back to summary |
|---|---|
| public ZstdCompressorOutputStream(final OutputStream outStream, final int level, final boolean closeFrameOnFlush, final boolean useChecksum) throws IOException Wraps the given stream into a zstd-jni ZstdOutputStream.
| |
| 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 this stream. The general contract of
| |
| flush | back to summary |
|---|---|
| public void flush() throws IOException Overrides java. Implements java. Doc from java. Flushes this output stream and forces any buffered output bytes
to be written out. The general contract of If the intended destination of this stream is an abstraction provided by the underlying operating system, for example a file, then flushing the stream guarantees only that bytes previously written to the stream are passed to the operating system for writing; it does not guarantee that they are actually written to a physical device such as a disk drive.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| write | back to summary |
|---|---|
| public void write(final byte[] buf, final int off, final int len) throws IOException Overrides java. Doc from java. Writes
If
If
| |
| write | back to summary |
|---|---|
| public void write(final int b) throws IOException Implements abstract java. Doc from java. Writes the specified byte to this output stream. The general
contract for
| |