public class ZstdCompressorOutputStream extends CompressorOutputStream
CompressorOutputStream
implementation to create Zstandard encoded stream.
Library relies on Zstandard JNIConstructor 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.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.OutputStream
java.io.IOException
public void write(int b) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void write(byte[] buf, int off, int len) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.OutputStream
java.io.IOException
Copyright © 2010 - 2020 Adobe. All Rights Reserved