Top Fields Constructors Methods
org.jruby.ext.zlib

public abstract Class ZStream

extends RubyObject
Class Inheritance
Known Direct Subclasses
org.jruby.ext.zlib.JZlibDeflate, org.jruby.ext.zlib.JZlibInflate
Annotations
@JRubyClass
name:Zlib::ZStream
Imports
com.jcraft.jzlib.JZlib, org.jruby.Ruby, .RubyClass, .RubyObject, .RubyString, org.jruby.anno.JRubyClass, .JRubyMethod, org.jruby.runtime.Block, .ThreadContext, org.jruby.runtime.builtin.IRubyObject

Field Summary

Modifier and TypeField and Description
protected boolean
Inherited from org.jruby.RubyObject:
IVAR_INSPECTING_OBJECT_ALLOCATOROBJECT_ALLOCATORREIFYING_OBJECT_ALLOCATOR

Constructor Summary

AccessConstructor and Description
public
ZStream(Ruby runtime, RubyClass type)

Method Summary

Modifier and TypeMethod and Description
public IRubyObject
public IRubyObject
adler()
Deprecated

public IRubyObject
avail_in()
Deprecated since 10.0.

public IRubyObject
public IRubyObject
avail_out()
Deprecated since 10.0.

public IRubyObject
pack-priv void
checkClosed()
Deprecated since 10.0.

pack-priv void
pack-priv static int
checkLevel(ThreadContext context, int level)

pack-priv static void
checkStrategy(Ruby runtime, int strategy)
Deprecated since 10.0.

pack-priv static void
checkStrategy(ThreadContext context, int strategy)

pack-priv static int
checkWindowBits(ThreadContext context, int value, boolean forInflate)

We only do windowBits=15(32K buffer, LZ77 algorithm) since java.util.zip only allows it.

public IRubyObject
close()
Deprecated since 10.0.

public IRubyObject
public IRubyObject
closed_p()
Deprecated since 10.0.

public IRubyObject
public IRubyObject
data_type()
Deprecated since 10.0.

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

public IRubyObject
public IRubyObject
public IRubyObject
public IRubyObject
initialize(Block unusedBlock)

protected abstract long
protected abstract void
protected IRubyObject
internalFinish(Block block)
Deprecated since 10.0.

protected IRubyObject
protected abstract boolean
protected void
internalReset()
Deprecated since 10.0.

protected void
protected abstract boolean
protected abstract int
protected abstract int
public IRubyObject
reset()
Deprecated since 10.0.

public IRubyObject
public IRubyObject
set_avail_out(IRubyObject p1)
Deprecated since 10.0.

public IRubyObject
public IRubyObject
stream_end_p()
Deprecated since 10.0.

public IRubyObject
public IRubyObject
total_in()
Deprecated

public IRubyObject
public IRubyObject
total_out()
Deprecated

public IRubyObject
Inherited from org.jruby.RubyObject:
attachToObjectSpacecallInitcallInitcallInitcallInitcallInitcallInitcallInitcallInitcallInitcallInitconvertToTypedigdig1dig2eqlInternalequalInternalequalsfinishObjectClassgetNativeClassIndexhashCodeinspectop_eqqputsspecificEvaltoRubyStringtoString

Field Detail

closedback to summary
protected boolean closed

Constructor Detail

ZStreamback to summary
public ZStream(Ruby runtime, RubyClass type)

Method Detail

adlerback to summary
public IRubyObject adler(ThreadContext context)
Annotations
@JRubyMethod
name:adler
adlerback to summary
public IRubyObject adler()

Deprecated

Annotations
@Deprecated
avail_inback to summary
public IRubyObject avail_in()

Deprecated

since 10.0.

Annotations
@Deprecated
since:10.0
avail_inback to summary
public IRubyObject avail_in(ThreadContext context)
Annotations
@JRubyMethod
name:avail_in
avail_outback to summary
public IRubyObject avail_out()

Deprecated

since 10.0.

Annotations
@Deprecated
since:10.0
avail_outback to summary
public IRubyObject avail_out(ThreadContext context)
Annotations
@JRubyMethod
name:avail_out
checkClosedback to summary
pack-priv void checkClosed()

Deprecated

since 10.0.

Annotations
@Deprecated
since:10.0
checkClosedback to summary
pack-priv void checkClosed(ThreadContext context)
checkLevelback to summary
pack-priv static int checkLevel(ThreadContext context, int level)
checkStrategyback to summary
pack-priv static void checkStrategy(Ruby runtime, int strategy)

Deprecated

since 10.0.

Annotations
@Deprecated
since:10.0
checkStrategyback to summary
pack-priv static void checkStrategy(ThreadContext context, int strategy)
checkWindowBitsback to summary
pack-priv static int checkWindowBits(ThreadContext context, int value, 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).

closeback to summary
public IRubyObject close()

Deprecated

since 10.0.

Annotations
@Deprecated
since:10.0
closeback to summary
public IRubyObject close(ThreadContext context)
Annotations
@JRubyMethod
name:close, end
closed_pback to summary
public IRubyObject closed_p()

Deprecated

since 10.0.

Annotations
@Deprecated
since:10.0
closed_pback to summary
public IRubyObject closed_p(ThreadContext context)
Annotations
@JRubyMethod
name:closed?, ended?
data_typeback to summary
public IRubyObject data_type()

Deprecated

since 10.0.

Annotations
@Deprecated
since:10.0
data_typeback to summary
public IRubyObject data_type(ThreadContext context)
Annotations
@JRubyMethod
name:data_type
finishback to summary
public IRubyObject finish(ThreadContext context, Block block)
Annotations
@JRubyMethod
name:finish
finished_pback to summary
public IRubyObject finished_p(ThreadContext context)
Annotations
@JRubyMethod
name:finished?
flush_next_inback to summary
public IRubyObject flush_next_in(ThreadContext context)
Annotations
@JRubyMethod
name:flush_next_in
flush_next_outback to summary
public IRubyObject flush_next_out(ThreadContext context, Block block)
Annotations
@JRubyMethod
initializeback to summary
public IRubyObject initialize(Block unusedBlock)
Annotations
@JRubyMethod
visibility:PRIVATE
internalAdlerback to summary
protected abstract long internalAdler()
internalCloseback to summary
protected abstract void internalClose()
internalFinishback to summary
protected IRubyObject internalFinish(Block block)

Deprecated

since 10.0.

Annotations
@Deprecated
since:10.0
internalFinishback to summary
protected IRubyObject internalFinish(ThreadContext context, Block block)
internalFinishedback to summary
protected abstract boolean internalFinished()
internalResetback to summary
protected void internalReset()

Deprecated

since 10.0.

Annotations
@Deprecated
since:10.0
internalResetback to summary
protected void internalReset(ThreadContext context)
internalStreamEndPback to summary
protected abstract boolean internalStreamEndP()
internalTotalInback to summary
protected abstract int internalTotalIn()
internalTotalOutback to summary
protected abstract int internalTotalOut()
resetback to summary
public IRubyObject reset()

Deprecated

since 10.0.

Annotations
@Deprecated
since:10.0
resetback to summary
public IRubyObject reset(ThreadContext context)
Annotations
@JRubyMethod
name:reset
set_avail_outback to summary
public IRubyObject set_avail_out(IRubyObject p1)

Deprecated

since 10.0.

Annotations
@Deprecated
since:10.0
set_avail_outback to summary
public IRubyObject set_avail_out(ThreadContext context, IRubyObject p1)
Annotations
@JRubyMethod
name:avail_out=
stream_end_pback to summary
public IRubyObject stream_end_p()

Deprecated

since 10.0.

Annotations
@Deprecated
since:10.0
stream_end_pback to summary
public IRubyObject stream_end_p(ThreadContext context)
Annotations
@JRubyMethod
name:stream_end?
total_inback to summary
public IRubyObject total_in()

Deprecated

Annotations
@Deprecated
total_inback to summary
public IRubyObject total_in(ThreadContext context)
Annotations
@JRubyMethod
name:total_in
total_outback to summary
public IRubyObject total_out()

Deprecated

Annotations
@Deprecated
total_outback to summary
public IRubyObject total_out(ThreadContext context)
Annotations
@JRubyMethod