Top Fields Constructors Methods
org.jruby.ext.zlib

public Class JZlibDeflate

extends ZStream
Class Inheritance
Annotations
@JRubyClass
name:Zlib::Deflate
parent:Zlib::ZStream
Imports
com.jcraft.jzlib.JZlib, java.io.IOException, org.jruby.Ruby, .RubyBasicObject, .RubyClass, .RubyNumeric, .RubyString, org.jruby.anno.JRubyClass, .JRubyMethod, org.jruby.runtime.Arity, .Block, .ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.util.ByteList

Field Summary

Modifier and TypeField and Description
public static final int
private byte[]
private int
private Deflater
flater

References Deprecated Deflater is deprecated or references (maybe indirectly) at least one deprecated element.
private int
private int
private int
private int
Inherited from org.jruby.ext.zlib.ZStream:
closed

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public IRubyObject
_initialize(IRubyObject[] args)
Deprecated

public IRubyObject
public IRubyObject
append(IRubyObject arg)
Deprecated since 10.0.

public IRubyObject
private void
public IRubyObject
deflate(IRubyObject[] args)
Deprecated

public IRubyObject
private IRubyObject
deflate(ThreadContext context, ByteList str, int flush)

private IRubyObject
public IRubyObject
flush(IRubyObject[] args)
Deprecated

public IRubyObject
flush(ThreadContext context, IRubyObject[] args)

private IRubyObject
flush(ThreadContext context, int flush)

private void
init(ThreadContext context, int level, int windowBits, int memlevel, int strategy)

public IRubyObject
initialize_copy(ThreadContext
the thread context
context
,
IRubyObject
the original
_other
)

Overrides org.jruby.RubyBasicObject.initialize_copy.

Initializes this object as a copy of the original, that is the parameter to this object.

protected long
protected void
protected IRubyObject
public boolean
protected void
protected boolean
protected int
protected int
public IRubyObject
params(ThreadContext context, IRubyObject level, IRubyObject strategy)

private void
run(ThreadContext context)

public static IRubyObject
s_deflate(IRubyObject recv, IRubyObject[] args)
Deprecated since 9.4.

public static IRubyObject
public IRubyObject
Inherited from org.jruby.ext.zlib.ZStream:
adleradleravail_inavail_inavail_outavail_outcheckClosedcheckClosedcheckLevelcheckStrategycheckStrategycheckWindowBitsclosecloseclosed_pclosed_pdata_typedata_typefinishfinished_pflush_next_inflush_next_outinitializeinternalFinishinternalResetresetresetset_avail_outset_avail_outstream_end_pstream_end_ptotal_intotal_intotal_outtotal_out

Field Detail

BASE_SIZEback to summary
public static final int BASE_SIZE
collectedback to summary
private byte[] collected
collectedIdxback to summary
private int collectedIdx
flaterback to summary
private Deflater flater

References Deprecated

Deflater is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

flushback to summary
private int flush
levelback to summary
private int level
strategyback to summary
private int strategy
windowBitsback to summary
private int windowBits

Constructor Detail

JZlibDeflateback to summary
public JZlibDeflate(Ruby runtime, RubyClass type)

Method Detail

_initializeback to summary
public IRubyObject _initialize(IRubyObject[] args)

Deprecated

Annotations
@Deprecated
_initializeback to summary
public IRubyObject _initialize(ThreadContext context, IRubyObject[] args)
Annotations
@JRubyMethod
name:initialize
optional:4
checkArity:false
visibility:PRIVATE
appendback to summary
public IRubyObject append(IRubyObject arg)

Deprecated

since 10.0.

Annotations
@Deprecated
since:10.0
appendback to summary
public IRubyObject append(ThreadContext context, IRubyObject arg)
Annotations
@JRubyMethod
name:<<
appendback to summary
private void append(ThreadContext context, ByteList obj) throws IOException
deflateback to summary
public IRubyObject deflate(IRubyObject[] args)

Deprecated

Annotations
@Deprecated
deflateback to summary
public IRubyObject deflate(ThreadContext context, IRubyObject[] args)
Annotations
@JRubyMethod
name:deflate
required:1
optional:1
checkArity:false
deflateback to summary
private IRubyObject deflate(ThreadContext context, ByteList str, int flush) throws IOException
finishback to summary
private IRubyObject finish(ThreadContext context)
flushback to summary
public IRubyObject flush(IRubyObject[] args)

Deprecated

Annotations
@Deprecated
flushback to summary
public IRubyObject flush(ThreadContext context, IRubyObject[] args)
Annotations
@JRubyMethod
name:flush
optional:1
checkArity:false
flushback to summary
private IRubyObject flush(ThreadContext context, int flush)
initback to summary
private void init(ThreadContext context, int level, int windowBits, int memlevel, int strategy)
initialize_copyback to summary
public IRubyObject initialize_copy(ThreadContext context, IRubyObject _other)

Overrides org.jruby.RubyBasicObject.initialize_copy.

Doc from org.jruby.RubyBasicObject.initialize_copy.

Initializes this object as a copy of the original, that is the parameter to this object. Will make sure that the argument actually has the same real class as this object. It shouldn't be possible to initialize an object with something totally different.

Parameters
context:ThreadContext

the thread context

_other:IRubyObject

the original

Returns:IRubyObject

a copy unless the same thing

Annotations
@JRubyMethod
visibility:PRIVATE
internalAdlerback to summary
protected long internalAdler()

Implements abstract org.jruby.ext.zlib.ZStream.internalAdler.

Annotations
@Override
internalCloseback to summary
protected void internalClose()

Implements abstract org.jruby.ext.zlib.ZStream.internalClose.

Annotations
@Override
internalFinishback to summary
protected IRubyObject internalFinish(ThreadContext context, Block block)

Overrides org.jruby.ext.zlib.ZStream.internalFinish.

Annotations
@Override
internalFinishedback to summary
public boolean internalFinished()

Implements abstract org.jruby.ext.zlib.ZStream.internalFinished.

Annotations
@Override
internalResetback to summary
protected void internalReset(ThreadContext context)

Overrides org.jruby.ext.zlib.ZStream.internalReset.

Annotations
@Override
internalStreamEndPback to summary
protected boolean internalStreamEndP()

Implements abstract org.jruby.ext.zlib.ZStream.internalStreamEndP.

Annotations
@Override
internalTotalInback to summary
protected int internalTotalIn()

Implements abstract org.jruby.ext.zlib.ZStream.internalTotalIn.

Annotations
@Override
internalTotalOutback to summary
protected int internalTotalOut()

Implements abstract org.jruby.ext.zlib.ZStream.internalTotalOut.

Annotations
@Override
paramsback to summary
public IRubyObject params(ThreadContext context, IRubyObject level, IRubyObject strategy)
Annotations
@JRubyMethod
name:params
runback to summary
private void run(ThreadContext context)
s_deflateback to summary
public static IRubyObject s_deflate(IRubyObject recv, IRubyObject[] args)

Deprecated

since 9.4.

Annotations
@Deprecated
since:9.4
s_deflateback to summary
public static IRubyObject s_deflate(ThreadContext context, IRubyObject recv, IRubyObject[] args)
Annotations
@JRubyMethod
name:deflate
required:1
optional:1
checkArity:false
meta:true
set_dictionaryback to summary
public IRubyObject set_dictionary(ThreadContext context, IRubyObject arg)
Annotations
@JRubyMethod
name:set_dictionary