public class ZstdOutputStreamNoFinalizer
extends java.io.FilterOutputStream
| Constructor and Description |
|---|
ZstdOutputStreamNoFinalizer(java.io.OutputStream outStream)
create a new compressing OutputStream
|
ZstdOutputStreamNoFinalizer(java.io.OutputStream outStream,
BufferPool bufferPool)
create a new compressing OutputStream
|
ZstdOutputStreamNoFinalizer(java.io.OutputStream outStream,
BufferPool bufferPool,
int level)
create a new compressing OutputStream
|
ZstdOutputStreamNoFinalizer(java.io.OutputStream outStream,
int level)
create a new compressing OutputStream
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush()
Flushes the output
|
static long |
recommendedCOutSize() |
ZstdOutputStreamNoFinalizer |
setChecksum(boolean useChecksums)
Enable checksums for the compressed stream.
|
ZstdOutputStreamNoFinalizer |
setCloseFrameOnFlush(boolean closeOnFlush)
Enable closing the frame on flush.
|
ZstdOutputStreamNoFinalizer |
setDict(byte[] dict) |
ZstdOutputStreamNoFinalizer |
setDict(ZstdDictCompress dict) |
ZstdOutputStreamNoFinalizer |
setLevel(int level)
Set the compression level.
|
ZstdOutputStreamNoFinalizer |
setLong(int windowLog)
Enable Long Distance Matching and set the Window size Log.
|
ZstdOutputStreamNoFinalizer |
setWorkers(int n)
Enable use of worker threads for parallel compression.
|
void |
write(byte[] src,
int offset,
int len) |
void |
write(int i) |
public ZstdOutputStreamNoFinalizer(java.io.OutputStream outStream,
int level)
throws java.io.IOException
outStream - the stream to wraplevel - the compression leveljava.io.IOExceptionpublic ZstdOutputStreamNoFinalizer(java.io.OutputStream outStream)
throws java.io.IOException
outStream - the stream to wrapjava.io.IOExceptionpublic ZstdOutputStreamNoFinalizer(java.io.OutputStream outStream,
BufferPool bufferPool,
int level)
throws java.io.IOException
outStream - the stream to wrapbufferPool - the pool to fetch and return buffersjava.io.IOExceptionpublic ZstdOutputStreamNoFinalizer(java.io.OutputStream outStream,
BufferPool bufferPool)
throws java.io.IOException
outStream - the stream to wrapbufferPool - the pool to fetch and return buffersjava.io.IOExceptionpublic static long recommendedCOutSize()
public ZstdOutputStreamNoFinalizer setChecksum(boolean useChecksums) throws java.io.IOException
java.io.IOExceptionpublic ZstdOutputStreamNoFinalizer setLevel(int level) throws java.io.IOException
java.io.IOExceptionpublic ZstdOutputStreamNoFinalizer setLong(int windowLog) throws java.io.IOException
java.io.IOExceptionpublic ZstdOutputStreamNoFinalizer setWorkers(int n) throws java.io.IOException
java.io.IOExceptionpublic ZstdOutputStreamNoFinalizer setCloseFrameOnFlush(boolean closeOnFlush) throws java.io.IOException
java.io.IOExceptionpublic ZstdOutputStreamNoFinalizer setDict(byte[] dict) throws java.io.IOException
java.io.IOExceptionpublic ZstdOutputStreamNoFinalizer 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.IOException