Class ZStream

All Implemented Interfaces:
Serializable, Cloneable, Comparable<IRubyObject>, InstanceVariables, InternalVariables, IRubyObject, CoreObjectType
Direct Known Subclasses:
JZlibDeflate, JZlibInflate

public abstract class ZStream extends RubyObject
See Also:
  • Field Details

    • closed

      protected boolean closed
  • Constructor Details

  • Method Details

    • internalTotalIn

      protected abstract int internalTotalIn()
    • internalTotalOut

      protected abstract int internalTotalOut()
    • internalStreamEndP

      protected abstract boolean internalStreamEndP()
    • internalReset

      protected abstract void internalReset()
    • internalFinished

      protected abstract boolean internalFinished()
    • internalAdler

      protected abstract long internalAdler()
    • internalFinish

      protected abstract IRubyObject internalFinish(Block block)
    • internalClose

      protected abstract void internalClose()
    • initialize

      public IRubyObject initialize(Block unusedBlock)
    • flush_next_out

      public IRubyObject flush_next_out(ThreadContext context, Block block)
    • total_out

      public IRubyObject total_out()
    • stream_end_p

      public IRubyObject stream_end_p()
    • data_type

      public IRubyObject data_type()
    • closed_p

      public IRubyObject closed_p()
    • reset

      public IRubyObject reset()
    • avail_out

      public IRubyObject avail_out()
    • set_avail_out

      public IRubyObject set_avail_out(IRubyObject p1)
    • adler

      public IRubyObject adler()
    • finish

      public IRubyObject finish(ThreadContext context, Block block)
    • avail_in

      public IRubyObject avail_in()
    • flush_next_in

      public IRubyObject flush_next_in(ThreadContext context)
    • total_in

      public IRubyObject total_in()
    • finished_p

      public IRubyObject finished_p(ThreadContext context)
    • close

      public IRubyObject close()
    • checkClosed

      void checkClosed()
    • checkLevel

      static void checkLevel(Ruby runtime, int level)
    • checkWindowBits

      static void checkWindowBits(Ruby runtime, int wbits, boolean forInflate)
      We only do windowBits=15(32K buffer, LZ77 algorithm) since java.util.zip only allows it. NOTE: deflateInit2 of zlib.c also accepts MAX_WBITS + 16(gzip compression). inflateInit2 also accepts MAX_WBITS + 16(gzip decompression) and MAX_WBITS + 32(automatic detection of gzip and LZ77).
    • checkStrategy

      static void checkStrategy(Ruby runtime, int strategy)