Top Fields Constructors Methods
org.jruby.ext.zlib

public Class JZlibRubyGzipWriter

extends RubyGzipFile
Class Inheritance
Annotations
@JRubyClass
name:Zlib::GzipWriter
parent:Zlib::GzipFile
Imports
com.jcraft.jzlib.Deflater, .GZIPException, .GZIPOutputStream, .JZlib, org.jcodings.specific.ASCIIEncoding, org.jruby.Ruby, .RubyBasicObject, .RubyClass, .RubyIO, .RubyKernel, .RubyNumeric, .RubyString, .RubyTime, org.jruby.anno.JRubyClass, .JRubyMethod, org.jruby.runtime.Arity, .Block, .Helpers, .ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.util.ByteList, .IOOutputStream, .TypeConverter, org.jruby.util.io.EncodingUtils, java.io.IOException

Field Summary

Modifier and TypeField and Description
private GZIPOutputStream
Inherited from org.jruby.ext.zlib.RubyGzipFile:
closedececflagsecoptsencenc2finishedhasBOMlevelmtimenullFreeCommentnullFreeOrigNameosCodereadTranscoderrealIosyncwriteTranscoder

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public IRubyObject
private static void
checkLevel(ThreadContext context, int level)

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

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

public IRubyObject
initialize(IRubyObject[] args)
Deprecated since 10.0.

public IRubyObject
initialize(ThreadContext context, IRubyObject[] args, Block block)

private IRubyObject
initializeCommon(ThreadContext context, IRubyObject stream, int level)

public static IRubyObject
newInstance(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block)

public static JZlibRubyGzipWriter
newInstance(IRubyObject recv, IRubyObject[] args)
Deprecated since 10.0.

public static JZlibRubyGzipWriter
public static IRubyObject
open(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block)

public IRubyObject
pos()
Deprecated since 10.0.

public IRubyObject
pos(ThreadContext context)

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

private int
processLevel(ThreadContext context, int argc, IRubyObject[] args)

private int
processStrategy(ThreadContext context, int argc, IRubyObject[] args)

public IRubyObject
putc(IRubyObject p1)
Deprecated since 10.0.

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

public IRubyObject
set_comment(IRubyObject obj)
Deprecated since 10.0.

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

public IRubyObject
public IRubyObject
set_orig_name(IRubyObject obj)
Deprecated since 10.0.

public IRubyObject
public IRubyObject
public IRubyObject
write(IRubyObject p1)
Deprecated

public IRubyObject
Inherited from org.jruby.ext.zlib.RubyGzipFile:
closeclosed_pclosed_pcommentcommentcrcecoptsfinishgetBOMgetEcflagsgetEcoptsgetEncgetEnc2getInternalEncodinggetReadEncodinggetReadEncodingisClosedlevellevelmtimenewInstancenewInstancenewStrnewStrorig_nameorig_nameos_codeos_codepathrespond_torespond_toset_syncsetBOMsetEcflagssetEcoptssetEncsetEnc2syncsyncto_ioto_iowrapwrapwrap19wrapBlock

Field Detail

ioback to summary
private GZIPOutputStream io

Constructor Detail

JZlibRubyGzipWriterback to summary
public JZlibRubyGzipWriter(Ruby runtime, RubyClass type)

Method Detail

appendback to summary
public IRubyObject append(IRubyObject p1)
Annotations
@JRubyMethod
name:append, <<
checkLevelback to summary
private static void checkLevel(ThreadContext context, int level)
closeback to summary
public IRubyObject close(ThreadContext context)

Overrides org.jruby.ext.zlib.RubyGzipFile.close.

Annotations
@Override
@JRubyMethod
name:close
crcback to summary
public IRubyObject crc(ThreadContext context)

Overrides org.jruby.ext.zlib.RubyGzipFile.crc.

Annotations
@Override
@JRubyMethod
name:crc
ensureNonNullback to summary
private RubyString ensureNonNull(RubyString obj)
finishback to summary
public IRubyObject finish(ThreadContext context)

Overrides org.jruby.ext.zlib.RubyGzipFile.finish.

Annotations
@Override
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
initializeback to summary
public IRubyObject initialize(IRubyObject[] args)

Deprecated

since 10.0.

Annotations
@Deprecated
since:10.0
initializeback to summary
public IRubyObject initialize(ThreadContext context, IRubyObject[] args, Block block)
Annotations
@JRubyMethod
name:initialize
rest:true
visibility:PRIVATE
initializeCommonback to summary
private IRubyObject initializeCommon(ThreadContext context, IRubyObject stream, int level)
newInstanceback to summary
public static IRubyObject newInstance(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block)
Annotations
@JRubyMethod
name:new
rest:true
meta:true
keywords:true
newInstanceback to summary
public static JZlibRubyGzipWriter newInstance(IRubyObject recv, IRubyObject[] args)

Deprecated

since 10.0.

Annotations
@Deprecated
since:10.0
newInstanceback to summary
public static JZlibRubyGzipWriter newInstance(ThreadContext context, RubyClass klass, IRubyObject[] args)
openback to summary
public static IRubyObject open(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block)
Annotations
@JRubyMethod
name:open
required:1
optional:3
checkArity:false
meta:true
posback to summary
public IRubyObject pos()

Deprecated

since 10.0.

Annotations
@Deprecated
since:10.0
posback to summary
public IRubyObject pos(ThreadContext context)
Annotations
@JRubyMethod
name:pos, tell
printfback to summary
public IRubyObject printf(ThreadContext context, IRubyObject[] args)
Annotations
@JRubyMethod
name:printf
required:1
rest:true
checkArity:false
processLevelback to summary
private int processLevel(ThreadContext context, int argc, IRubyObject[] args)
processStrategyback to summary
private int processStrategy(ThreadContext context, int argc, IRubyObject[] args)
putcback to summary
public IRubyObject putc(IRubyObject p1)

Deprecated

since 10.0.

Annotations
@Deprecated
since:10.0
putcback to summary
public IRubyObject putc(ThreadContext context, IRubyObject p1)
Annotations
@JRubyMethod
name:putc
putsback to summary
public IRubyObject puts(ThreadContext context, IRubyObject[] args)
Annotations
@JRubyMethod
name:puts
rest:true
set_commentback to summary
public IRubyObject set_comment(IRubyObject obj)

Deprecated

since 10.0.

Annotations
@Deprecated
since:10.0
set_commentback to summary
public IRubyObject set_comment(ThreadContext context, IRubyObject obj)
Annotations
@JRubyMethod
name:comment=
set_mtimeback to summary
public IRubyObject set_mtime(IRubyObject arg)

Deprecated

since 10.0.

Annotations
@Deprecated
since:10.0
set_mtimeback to summary
public IRubyObject set_mtime(ThreadContext context, IRubyObject arg)
Annotations
@JRubyMethod
name:mtime=
set_orig_nameback to summary
public IRubyObject set_orig_name(IRubyObject obj)

Deprecated

since 10.0.

Annotations
@Deprecated
since:10.0
set_orig_nameback to summary
public IRubyObject set_orig_name(ThreadContext context, IRubyObject obj)
Annotations
@JRubyMethod
name:orig_name=
set_syncback to summary
public IRubyObject set_sync(ThreadContext context, IRubyObject arg)

Overrides org.jruby.ext.zlib.RubyGzipFile.set_sync.

Annotations
@Override
@JRubyMethod
writeback to summary
public IRubyObject write(IRubyObject p1)

Deprecated

Annotations
@Deprecated
writeback to summary
public IRubyObject write(ThreadContext context, IRubyObject p1)
Annotations
@JRubyMethod
name:write