public class ZstdCompressorOutputStream extends CompressorOutputStream
CompressorOutputStream implementation to create Zstandard encoded stream.
 Library relies on Zstandard JNI| Constructor and Description | 
|---|
| ZstdCompressorOutputStream(OutputStream outStream)Wraps the given stream into a zstd-jni ZstdOutputStream using the default values for  level,closeFrameOnFlushanduseChecksum. | 
| ZstdCompressorOutputStream(OutputStream outStream,
                          int level)Wraps the given stream into a zstd-jni ZstdOutputStream using the default values for  closeFrameOnFlushanduseChecksum. | 
| ZstdCompressorOutputStream(OutputStream outStream,
                          int level,
                          boolean closeFrameOnFlush)Wraps the given stream into a zstd-jni ZstdOutputStream using the default value for  useChecksum. | 
| ZstdCompressorOutputStream(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() | 
| String | toString() | 
| void | write(byte[] buf,
     int off,
     int len) | 
| void | write(int b) | 
writepublic ZstdCompressorOutputStream(OutputStream outStream, int level, boolean closeFrameOnFlush, boolean useChecksum) throws 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 argumentIOException - if zstd-jni doespublic ZstdCompressorOutputStream(OutputStream outStream, int level, boolean closeFrameOnFlush) throws IOException
useChecksum.outStream - the stream to write tolevel - value for zstd-jni's level argumentcloseFrameOnFlush - value for zstd-jni's closeFrameOnFlush argumentIOException - if zstd-jni doespublic ZstdCompressorOutputStream(OutputStream outStream, int level) throws IOException
closeFrameOnFlush
 and useChecksum.outStream - the stream to write tolevel - value for zstd-jni's level argumentIOException - if zstd-jni doespublic ZstdCompressorOutputStream(OutputStream outStream) throws IOException
level, closeFrameOnFlush and useChecksum.outStream - the stream to write toIOException - if zstd-jni doespublic void close() throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionpublic void write(int b) throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] buf, int off, int len) throws IOException
write in class OutputStreamIOExceptionpublic void flush() throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionCopyright © 2018 The Apache Software Foundation. All rights reserved.