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

    Constructors
    Constructor
    Description
    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 Summary

    Modifier and Type
    Method
    Description
    long
     
    void
     
    protected boolean
     

    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, tryEnsure

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      protected boolean tryFillReadBuffer() throws IOException
      Specified by:
      tryFillReadBuffer in class ca.spottedleaf.ioutil.stream.AbstractBufferInputStream
      Throws:
      IOException
    • availableLong

      public long availableLong() throws IOException
      Overrides:
      availableLong in class ca.spottedleaf.ioutil.stream.AbstractBufferInputStream
      Throws:
      IOException
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Overrides:
      close in class InputStream
      Throws:
      IOException