public class ZstdCompressorOutputStream extends CompressorOutputStream
CompressorOutputStream implementation to create Zstandard encoded stream.
Library relies on Zstandard JNI| Constructor and Description |
|---|
ZstdCompressorOutputStream(java.io.OutputStream outStream)
Wraps the given stream into a zstd-jni ZstdOutputStream using the default values for
level, closeFrameOnFlush and useChecksum. |
ZstdCompressorOutputStream(java.io.OutputStream outStream,
int level)
Wraps the given stream into a zstd-jni ZstdOutputStream using the default values for
closeFrameOnFlush
and useChecksum. |
ZstdCompressorOutputStream(java.io.OutputStream outStream,
int level,
boolean closeFrameOnFlush)
Wraps the given stream into a zstd-jni ZstdOutputStream using the default value for
useChecksum. |
ZstdCompressorOutputStream(java.io.OutputStream outStream,
int level,
boolean closeFrameOnFlush,
boolean useChecksum)
Wraps the given stream into a zstd-jni ZstdOutputStream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
java.lang.String |
toString() |
void |
write(byte[] buf,
int off,
int len) |
void |
write(int b) |
public ZstdCompressorOutputStream(java.io.OutputStream outStream,
int level,
boolean closeFrameOnFlush,
boolean useChecksum)
throws java.io.IOException
outStream - the stream to write tolevel - value for zstd-jni's level argumentcloseFrameOnFlush - value for zstd-jni's closeFrameOnFlush argumentuseChecksum - value for zstd-jni's useChecksum argumentjava.io.IOException - if zstd-jni doespublic ZstdCompressorOutputStream(java.io.OutputStream outStream,
int level,
boolean closeFrameOnFlush)
throws java.io.IOException
useChecksum.outStream - the stream to write tolevel - value for zstd-jni's level argumentcloseFrameOnFlush - value for zstd-jni's closeFrameOnFlush argumentjava.io.IOException - if zstd-jni doespublic ZstdCompressorOutputStream(java.io.OutputStream outStream,
int level)
throws java.io.IOException
closeFrameOnFlush
and useChecksum.outStream - the stream to write tolevel - value for zstd-jni's level argumentjava.io.IOException - if zstd-jni doespublic ZstdCompressorOutputStream(java.io.OutputStream outStream)
throws java.io.IOException
level, closeFrameOnFlush and useChecksum.outStream - the stream to write tojava.io.IOException - if zstd-jni doespublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.OutputStreamjava.io.IOExceptionpublic void write(int b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void write(byte[] buf,
int off,
int len)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOExceptionCopyright © 2010 - 2023 Adobe. All Rights Reserved