Class ZSTDBufferInputStream
java.lang.Object
java.io.InputStream
ca.spottedleaf.ioutil.stream.AbstractBufferInputStream
ca.spottedleaf.ioutil.stream.zstd.ZSTDBufferInputStream
- All Implemented Interfaces:
Closeable, DataInput, AutoCloseable
public final class ZSTDBufferInputStream
extends ca.spottedleaf.ioutil.stream.AbstractBufferInputStream
-
Field Summary
Fields inherited from class ca.spottedleaf.ioutil.stream.AbstractBufferInputStream
readBuffer -
Constructor Summary
ConstructorsConstructorDescriptionZSTDBufferInputStream(ca.spottedleaf.ioutil.buffer.Buffer decompressedBuffer, ca.spottedleaf.ioutil.buffer.Buffer compressedBuffer, com.github.luben.zstd.ZstdDecompressCtx decompressor, Consumer<com.github.luben.zstd.ZstdDecompressCtx> closeDecompressor, ca.spottedleaf.ioutil.stream.AbstractBufferInputStream wrap) -
Method Summary
Methods inherited from class ca.spottedleaf.ioutil.stream.AbstractBufferInputStream
available, ensureReadable, getImmediatelyReadable, isEOF, read, read, read, read, read, read, read, read, read, read, read, read, readBoolean, readByte, readChar, readCharLE, readCharNO, readDouble, readDoubleLE, readDoubleNO, readFilePos, readFilePos, readFloat, readFloatLE, readFloatNO, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFullyLE, readFullyLE, readFullyLE, readFullyLE, readFullyLE, readFullyLE, readFullyLE, readFullyLE, readFullyLE, readFullyLE, readFullyLE, readFullyLE, readFullyNO, readFullyNO, readFullyNO, readFullyNO, readFullyNO, readFullyNO, readFullyNO, readFullyNO, readFullyNO, readFullyNO, readFullyNO, readFullyNO, readInt, readIntLE, readIntNO, readLine, readLong, readLongLE, readLongNO, readShort, readShortLE, readShortNO, readSignedMedium, readSignedMediumLE, readSignedMediumsFully, readSignedMediumsFully, readSignedMediumsFullyLE, readSignedMediumsFullyLE, readSignedVarInt, readSignedVarLong, readUnsignedByte, readUnsignedMedium, readUnsignedMediumLE, readUnsignedMediumsFully, readUnsignedMediumsFully, readUnsignedMediumsFullyLE, readUnsignedMediumsFullyLE, readUnsignedShort, readUnsignedVarInt, readUnsignedVarLong, readUTF, readUTFUncached, skip, skipBytes, tryEnsureMethods inherited from class InputStream
mark, markSupported, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, skipNBytes, transferTo
-
Constructor Details
-
ZSTDBufferInputStream
public ZSTDBufferInputStream(ca.spottedleaf.ioutil.buffer.Buffer decompressedBuffer, ca.spottedleaf.ioutil.buffer.Buffer compressedBuffer, com.github.luben.zstd.ZstdDecompressCtx decompressor, Consumer<com.github.luben.zstd.ZstdDecompressCtx> closeDecompressor, ca.spottedleaf.ioutil.stream.AbstractBufferInputStream wrap)
-
-
Method Details
-
tryFillReadBuffer
- Specified by:
tryFillReadBufferin classca.spottedleaf.ioutil.stream.AbstractBufferInputStream- Throws:
IOException
-
availableLong
- Overrides:
availableLongin classca.spottedleaf.ioutil.stream.AbstractBufferInputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-