Class ZstdCompressionStream

java.lang.Object
dev.hallock.zstd.ZstdCompressionStream
All Implemented Interfaces:
AutoCloseable

public final class ZstdCompressionStream extends Object implements AutoCloseable
  • Constructor Details

  • Method Details

    • compressionLevel

      public int compressionLevel()
    • sizeOf

      public long sizeOf()
    • compressionStream

      public ZstdResult compressionStream(ZstdOutputBuffer output, ZstdInputBuffer input)
    • flush

      public ZstdResult flush(ZstdOutputBuffer output)
      Equivalent to flushStream
      Parameters:
      output - the output
    • end

      public ZstdResult end(ZstdOutputBuffer output)
      Equivalent to endStream
      Parameters:
      output - the output
    • close

      public void close() throws ZstdException
      Specified by:
      close in interface AutoCloseable
      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