Class ZSTDBufferOutputStream
java.lang.Object
java.io.OutputStream
ca.spottedleaf.ioutil.stream.AbstractBufferOutputStream
ca.spottedleaf.ioutil.stream.zstd.ZSTDBufferOutputStream
- All Implemented Interfaces:
Closeable, DataOutput, Flushable, AutoCloseable
-
Field Summary
Fields inherited from class AbstractBufferOutputStream
writeBuffer -
Constructor Summary
ConstructorsConstructorDescriptionZSTDBufferOutputStream(Buffer compressedBuffer, Buffer decompressedBuffer, com.github.luben.zstd.ZstdCompressCtx compressor, Consumer<com.github.luben.zstd.ZstdCompressCtx> closeCompressor, AbstractBufferOutputStream wrap) -
Method Summary
Methods inherited from class AbstractBufferOutputStream
ensureWritable, getImmediatelyWritable, getWritable, tryEnsure, tryEnsureImmediatelyWritable, write, write, write, write, write, write, write, write, write, write, write, writeBoolean, writeByte, writeBytes, writeBytes, writeChar, writeCharLE, writeCharNO, writeChars, writeChars, writeChars, writeChars, writeCharsLE, writeCharsLE, writeCharsNO, writeCharsNO, writeDouble, writeDoubleLE, writeDoubleNO, writeDoubles, writeDoubles, writeDoublesLE, writeDoublesLE, writeDoublesNO, writeDoublesNO, writeFloat, writeFloatLE, writeFloatNO, writeFloats, writeFloats, writeFloatsLE, writeFloatsLE, writeFloatsNO, writeFloatsNO, writeInt, writeIntLE, writeIntNO, writeInts, writeInts, writeIntsLE, writeIntsLE, writeIntsNO, writeIntsNO, writeLong, writeLongLE, writeLongNO, writeLongs, writeLongs, writeLongsLE, writeLongsLE, writeLongsNO, writeLongsNO, writeMedium, writeMediums, writeMediums, writeMediumsLE, writeMediumsLE, writeShort, writeShortLE, writeShortNO, writeShorts, writeShorts, writeShortsLE, writeShortsLE, writeShortsNO, writeShortsNO, writeSignedVarInt, writeSignedVarLong, writeUnsignedVarInt, writeUnsignedVarLong, writeUTFMethods inherited from class OutputStream
nullOutputStream
-
Constructor Details
-
ZSTDBufferOutputStream
public ZSTDBufferOutputStream(Buffer compressedBuffer, Buffer decompressedBuffer, com.github.luben.zstd.ZstdCompressCtx compressor, Consumer<com.github.luben.zstd.ZstdCompressCtx> closeCompressor, AbstractBufferOutputStream wrap)
-
-
Method Details
-
tryFlushWriteBuffer
- Specified by:
tryFlushWriteBufferin classAbstractBufferOutputStream- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-