public class ZstdOutputStream
extends java.io.FilterOutputStream
| Constructor and Description |
|---|
ZstdOutputStream(java.io.OutputStream outStream) |
ZstdOutputStream(java.io.OutputStream outStream,
int level) |
ZstdOutputStream(java.io.OutputStream outStream,
int level,
boolean closeFrameOnFlush)
Deprecated.
Use ZstdOutputStream() or ZstdOutputStream(level) and set the other params with the setters
|
ZstdOutputStream(java.io.OutputStream outStream,
int level,
boolean closeFrameOnFlush,
boolean useChecksums)
Deprecated.
Use ZstdOutputStream() or ZstdOutputStream(level) and set the other params with the setters
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected void |
finalize() |
void |
flush()
Flushes the output
|
ZstdOutputStream |
setChecksum(boolean useChecksums) |
ZstdOutputStream |
setCloseFrameOnFlush(boolean closeOnFlush) |
ZstdOutputStream |
setDict(byte[] dict) |
ZstdOutputStream |
setDict(ZstdDictCompress dict) |
ZstdOutputStream |
setLevel(int level) |
ZstdOutputStream |
setWorkers(int n) |
void |
write(byte[] src,
int offset,
int len) |
void |
write(int i) |
public ZstdOutputStream(java.io.OutputStream outStream,
int level,
boolean closeFrameOnFlush,
boolean useChecksums)
throws java.io.IOException
java.io.IOExceptionpublic ZstdOutputStream(java.io.OutputStream outStream,
int level,
boolean closeFrameOnFlush)
throws java.io.IOException
java.io.IOExceptionpublic ZstdOutputStream(java.io.OutputStream outStream,
int level)
throws java.io.IOException
java.io.IOExceptionpublic ZstdOutputStream(java.io.OutputStream outStream)
throws java.io.IOException
java.io.IOExceptionpublic ZstdOutputStream setChecksum(boolean useChecksums) throws java.io.IOException
java.io.IOExceptionpublic ZstdOutputStream setLevel(int level) throws java.io.IOException
java.io.IOExceptionpublic ZstdOutputStream setWorkers(int n) throws java.io.IOException
java.io.IOExceptionpublic ZstdOutputStream setCloseFrameOnFlush(boolean closeOnFlush) throws java.io.IOException
java.io.IOExceptionpublic ZstdOutputStream setDict(byte[] dict) throws java.io.IOException
java.io.IOExceptionpublic ZstdOutputStream setDict(ZstdDictCompress dict) throws java.io.IOException
java.io.IOExceptionpublic void write(byte[] src,
int offset,
int len)
throws java.io.IOException
write in class java.io.FilterOutputStreamjava.io.IOExceptionpublic void write(int i)
throws java.io.IOException
write in class java.io.FilterOutputStreamjava.io.IOExceptionpublic void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.FilterOutputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.FilterOutputStreamjava.io.IOExceptionprotected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwable