Class ZstdCompressionStream
java.lang.Object
dev.hallock.zstd.ZstdCompressionStream
- All Implemented Interfaces:
AutoCloseable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()intcompressionStream(ZstdOutputBuffer output, ZstdInputBuffer input) end(ZstdOutputBuffer output) Equivalent to endStreamflush(ZstdOutputBuffer output) Equivalent to flushStreamlongsizeOf()static longReturns the recommended size for the input bufferstatic longReturns the recommended size for the output buffer
-
Constructor Details
-
ZstdCompressionStream
- Throws:
ZstdException
-
-
Method Details
-
compressionLevel
public int compressionLevel() -
sizeOf
public long sizeOf() -
compressionStream
-
flush
Equivalent to flushStream- Parameters:
output- the output
-
end
Equivalent to endStream- Parameters:
output- the output
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
ZstdException
-
streamInSize
public static long streamInSize()Returns the recommended size for the input buffer -
streamOutSize
public static long streamOutSize()Returns the recommended size for the output buffer
-