public class org.jruby.ext.zlib.JZlibRubyGzipWriter extends org.jruby.ext.zlib.RubyGzipFile
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.ext.zlib.JZlibRubyGzipWriter
super_class: org.jruby.ext.zlib.RubyGzipFile
{
protected static final org.jruby.runtime.ObjectAllocator GZIPWRITER_ALLOCATOR;
descriptor: Lorg/jruby/runtime/ObjectAllocator;
flags: (0x001c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL
private com.jcraft.jzlib.GZIPOutputStream io;
descriptor: Lcom/jcraft/jzlib/GZIPOutputStream;
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new org.jruby.ext.zlib.JZlibRubyGzipWriter$1
dup
invokespecial org.jruby.ext.zlib.JZlibRubyGzipWriter$1.<init>:()V
putstatic org.jruby.ext.zlib.JZlibRubyGzipWriter.GZIPWRITER_ALLOCATOR:Lorg/jruby/runtime/ObjectAllocator;
1: return
LocalVariableTable:
Start End Slot Name Signature
public static org.jruby.runtime.builtin.IRubyObject newInstance(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject[], org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;[Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
aload 2
invokestatic org.jruby.ext.zlib.JZlibRubyGzipWriter.newInstance:(Lorg/jruby/runtime/builtin/IRubyObject;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/ext/zlib/JZlibRubyGzipWriter;
astore 4
start local 4 1: aload 0
aload 4
aload 3
invokestatic org.jruby.ext.zlib.RubyGzipFile.wrapBlock:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/ext/zlib/RubyGzipFile;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 context Lorg/jruby/runtime/ThreadContext;
0 2 1 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 2 2 args [Lorg/jruby/runtime/builtin/IRubyObject;
0 2 3 block Lorg/jruby/runtime/Block;
1 2 4 result Lorg/jruby/ext/zlib/JZlibRubyGzipWriter;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"new"}, rest = true, meta = true)
MethodParameters:
Name Flags
context
recv
args
block
public static org.jruby.ext.zlib.JZlibRubyGzipWriter newInstance(org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject[]);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/ext/zlib/JZlibRubyGzipWriter;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 0
checkcast org.jruby.RubyClass
astore 2
start local 2 1: aload 2
invokevirtual org.jruby.RubyClass.allocate:()Lorg/jruby/runtime/builtin/IRubyObject;
checkcast org.jruby.ext.zlib.JZlibRubyGzipWriter
astore 3
start local 3 2: aload 3
aload 1
getstatic org.jruby.runtime.Block.NULL_BLOCK:Lorg/jruby/runtime/Block;
invokevirtual org.jruby.ext.zlib.JZlibRubyGzipWriter.callInit:([Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)V
3: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 4 1 args [Lorg/jruby/runtime/builtin/IRubyObject;
1 4 2 klass Lorg/jruby/RubyClass;
2 4 3 result Lorg/jruby/ext/zlib/JZlibRubyGzipWriter;
MethodParameters:
Name Flags
recv
args
public static org.jruby.runtime.builtin.IRubyObject open19(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject[], org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;[Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=8, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
invokeinterface org.jruby.runtime.builtin.IRubyObject.getRuntime:()Lorg/jruby/Ruby;
astore 4
start local 4 1: aload 2
iconst_0
aload 0
aload 4
invokevirtual org.jruby.Ruby.getFile:()Lorg/jruby/RubyClass;
ldc "open"
aload 2
iconst_0
aaload
aload 4
ldc "wb"
invokevirtual org.jruby.Ruby.newString:(Ljava/lang/String;)Lorg/jruby/RubyString;
invokestatic org.jruby.runtime.Helpers.invoke:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Ljava/lang/String;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
aastore
2: aload 1
aload 2
invokestatic org.jruby.ext.zlib.JZlibRubyGzipWriter.newInstance:(Lorg/jruby/runtime/builtin/IRubyObject;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/ext/zlib/JZlibRubyGzipWriter;
astore 5
start local 5 3: aload 0
aload 5
aload 3
invokestatic org.jruby.ext.zlib.RubyGzipFile.wrapBlock:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/ext/zlib/RubyGzipFile;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 context Lorg/jruby/runtime/ThreadContext;
0 4 1 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 4 2 args [Lorg/jruby/runtime/builtin/IRubyObject;
0 4 3 block Lorg/jruby/runtime/Block;
1 4 4 runtime Lorg/jruby/Ruby;
3 4 5 gzio Lorg/jruby/ext/zlib/JZlibRubyGzipWriter;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"open"}, required = 1, optional = 3, meta = true)
MethodParameters:
Name Flags
context
recv
args
block
public void <init>(org.jruby.Ruby, org.jruby.RubyClass);
descriptor: (Lorg/jruby/Ruby;Lorg/jruby/RubyClass;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokespecial org.jruby.ext.zlib.RubyGzipFile.<init>:(Lorg/jruby/Ruby;Lorg/jruby/RubyClass;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ext/zlib/JZlibRubyGzipWriter;
0 2 1 runtime Lorg/jruby/Ruby;
0 2 2 type Lorg/jruby/RubyClass;
MethodParameters:
Name Flags
runtime
type
public org.jruby.runtime.builtin.IRubyObject initialize(org.jruby.runtime.builtin.IRubyObject[]);
descriptor: ([Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 0
invokevirtual org.jruby.ext.zlib.JZlibRubyGzipWriter.getRuntime:()Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getCurrentContext:()Lorg/jruby/runtime/ThreadContext;
aload 1
getstatic org.jruby.runtime.Block.NULL_BLOCK:Lorg/jruby/runtime/Block;
invokevirtual org.jruby.ext.zlib.JZlibRubyGzipWriter.initialize19:(Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/zlib/JZlibRubyGzipWriter;
0 1 1 args [Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
args
public org.jruby.runtime.builtin.IRubyObject initialize19(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject[], org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
invokevirtual org.jruby.runtime.ThreadContext.getRuntime:()Lorg/jruby/Ruby;
astore 4
start local 4 1: aload 1
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
astore 5
start local 5 2: aload 2
arraylength
istore 6
start local 6 3: iload 6
iconst_1
if_icmple 6
4: aload 4
aload 5
invokestatic org.jruby.util.TypeConverter.checkHashType:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
astore 5
5: aload 5
invokeinterface org.jruby.runtime.builtin.IRubyObject.isNil:()Z
ifne 6
iinc 6 -1
6: StackMap locals: org.jruby.Ruby org.jruby.runtime.builtin.IRubyObject int
StackMap stack:
aload 0
aload 0
iload 6
aload 2
aload 4
invokevirtual org.jruby.ext.zlib.JZlibRubyGzipWriter.processLevel:(I[Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/Ruby;)I
putfield org.jruby.ext.zlib.JZlibRubyGzipWriter.level:I
7: aload 0
iload 6
aload 2
invokevirtual org.jruby.ext.zlib.JZlibRubyGzipWriter.processStrategy:(I[Lorg/jruby/runtime/builtin/IRubyObject;)I
pop
8: aload 0
aload 2
iconst_0
aaload
aload 0
getfield org.jruby.ext.zlib.JZlibRubyGzipWriter.level:I
invokevirtual org.jruby.ext.zlib.JZlibRubyGzipWriter.initializeCommon:(Lorg/jruby/runtime/builtin/IRubyObject;I)Lorg/jruby/runtime/builtin/IRubyObject;
pop
9: aload 0
aload 1
aload 5
invokevirtual org.jruby.ext.zlib.JZlibRubyGzipWriter.ecopts:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)V
10: aload 0
areturn
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/jruby/ext/zlib/JZlibRubyGzipWriter;
0 11 1 context Lorg/jruby/runtime/ThreadContext;
0 11 2 args [Lorg/jruby/runtime/builtin/IRubyObject;
0 11 3 block Lorg/jruby/runtime/Block;
1 11 4 runtime Lorg/jruby/Ruby;
2 11 5 opt Lorg/jruby/runtime/builtin/IRubyObject;
3 11 6 argc I
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"initialize"}, rest = true, visibility = org.jruby.runtime.Visibility.PRIVATE:Lorg/jruby/runtime/Visibility;)
MethodParameters:
Name Flags
context
args
block
private int processStrategy(int, org.jruby.runtime.builtin.IRubyObject[]);
descriptor: (I[Lorg/jruby/runtime/builtin/IRubyObject;)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: iload 1
iconst_3
if_icmpge 1
iconst_0
goto 2
StackMap locals:
StackMap stack:
1: aload 2
iconst_2
aaload
iconst_0
invokestatic org.jruby.ext.zlib.RubyZlib.FIXNUMARG:(Lorg/jruby/runtime/builtin/IRubyObject;I)I
StackMap locals:
StackMap stack: int
2: ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/ext/zlib/JZlibRubyGzipWriter;
0 3 1 argc I
0 3 2 args [Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
argc
args
private int processLevel(int, org.jruby.runtime.builtin.IRubyObject[], org.jruby.Ruby);
descriptor: (I[Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/Ruby;)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 1
iconst_2
if_icmpge 1
iconst_m1
goto 2
StackMap locals:
StackMap stack:
1: aload 2
iconst_1
aaload
iconst_m1
invokestatic org.jruby.ext.zlib.RubyZlib.FIXNUMARG:(Lorg/jruby/runtime/builtin/IRubyObject;I)I
StackMap locals:
StackMap stack: int
2: istore 4
start local 4 3: aload 3
iload 4
invokestatic org.jruby.ext.zlib.JZlibRubyGzipWriter.checkLevel:(Lorg/jruby/Ruby;I)V
4: iload 4
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/jruby/ext/zlib/JZlibRubyGzipWriter;
0 5 1 argc I
0 5 2 args [Lorg/jruby/runtime/builtin/IRubyObject;
0 5 3 runtime Lorg/jruby/Ruby;
3 5 4 level I
MethodParameters:
Name Flags
argc
args
runtime
private org.jruby.runtime.builtin.IRubyObject initializeCommon(org.jruby.runtime.builtin.IRubyObject, int);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;I)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
checkcast org.jruby.RubyObject
putfield org.jruby.ext.zlib.JZlibRubyGzipWriter.realIo:Lorg/jruby/runtime/builtin/IRubyObject;
1: new com.jcraft.jzlib.Deflater
dup
iload 2
bipush 31
iconst_0
invokespecial com.jcraft.jzlib.Deflater.<init>:(IIZ)V
astore 3
start local 3 2: new org.jruby.ext.zlib.JZlibRubyGzipWriter$2
dup
aload 0
aload 0
getfield org.jruby.ext.zlib.JZlibRubyGzipWriter.realIo:Lorg/jruby/runtime/builtin/IRubyObject;
iconst_0
iconst_0
invokespecial org.jruby.ext.zlib.JZlibRubyGzipWriter$2.<init>:(Lorg/jruby/ext/zlib/JZlibRubyGzipWriter;Lorg/jruby/runtime/builtin/IRubyObject;ZZ)V
astore 4
start local 4 3: aload 0
new com.jcraft.jzlib.GZIPOutputStream
dup
aload 4
aload 3
sipush 512
iconst_0
invokespecial com.jcraft.jzlib.GZIPOutputStream.<init>:(Ljava/io/OutputStream;Lcom/jcraft/jzlib/Deflater;IZ)V
putfield org.jruby.ext.zlib.JZlibRubyGzipWriter.io:Lcom/jcraft/jzlib/GZIPOutputStream;
4: aload 0
5: areturn
end local 4 end local 3 6: StackMap locals:
StackMap stack: java.io.IOException
astore 3
start local 3 7: aload 0
invokevirtual org.jruby.ext.zlib.JZlibRubyGzipWriter.getRuntime:()Lorg/jruby/Ruby;
aload 3
invokevirtual org.jruby.Ruby.newIOErrorFromException:(Ljava/io/IOException;)Lorg/jruby/exceptions/RaiseException;
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/jruby/ext/zlib/JZlibRubyGzipWriter;
0 8 1 stream Lorg/jruby/runtime/builtin/IRubyObject;
0 8 2 level I
2 6 3 deflater Lcom/jcraft/jzlib/Deflater;
3 6 4 ioOutputStream Lorg/jruby/util/IOOutputStream;
7 8 3 ioe Ljava/io/IOException;
Exception table:
from to target type
1 5 6 Class java.io.IOException
MethodParameters:
Name Flags
stream
level
private static void checkLevel(org.jruby.Ruby, int);
descriptor: (Lorg/jruby/Ruby;I)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: iload 1
iconst_m1
if_icmpeq 2
iload 1
iflt 1
iload 1
bipush 9
if_icmple 2
1: StackMap locals:
StackMap stack:
aload 0
ldc "stream error: invalid level"
invokestatic org.jruby.ext.zlib.RubyZlib.newStreamError:(Lorg/jruby/Ruby;Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 runtime Lorg/jruby/Ruby;
0 3 1 level I
MethodParameters:
Name Flags
runtime
level
public org.jruby.runtime.builtin.IRubyObject close();
descriptor: ()Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield org.jruby.ext.zlib.JZlibRubyGzipWriter.closed:Z
ifne 7
1: aload 0
getfield org.jruby.ext.zlib.JZlibRubyGzipWriter.io:Lcom/jcraft/jzlib/GZIPOutputStream;
invokevirtual com.jcraft.jzlib.GZIPOutputStream.close:()V
2: aload 0
getfield org.jruby.ext.zlib.JZlibRubyGzipWriter.realIo:Lorg/jruby/runtime/builtin/IRubyObject;
ldc "close"
invokeinterface org.jruby.runtime.builtin.IRubyObject.respondsTo:(Ljava/lang/String;)Z
ifeq 7
3: aload 0
getfield org.jruby.ext.zlib.JZlibRubyGzipWriter.realIo:Lorg/jruby/runtime/builtin/IRubyObject;
aload 0
getfield org.jruby.ext.zlib.JZlibRubyGzipWriter.realIo:Lorg/jruby/runtime/builtin/IRubyObject;
invokeinterface org.jruby.runtime.builtin.IRubyObject.getRuntime:()Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getCurrentContext:()Lorg/jruby/runtime/ThreadContext;
ldc "close"
invokeinterface org.jruby.runtime.builtin.IRubyObject.callMethod:(Lorg/jruby/runtime/ThreadContext;Ljava/lang/String;)Lorg/jruby/runtime/builtin/IRubyObject;
pop
4: goto 7
StackMap locals:
StackMap stack: java.io.IOException
5: astore 1
start local 1 6: aload 0
invokevirtual org.jruby.ext.zlib.JZlibRubyGzipWriter.getRuntime:()Lorg/jruby/Ruby;
aload 1
invokevirtual org.jruby.Ruby.newIOErrorFromException:(Ljava/io/IOException;)Lorg/jruby/exceptions/RaiseException;
athrow
end local 1 7: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield org.jruby.ext.zlib.JZlibRubyGzipWriter.closed:Z
8: aload 0
getfield org.jruby.ext.zlib.JZlibRubyGzipWriter.realIo:Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/jruby/ext/zlib/JZlibRubyGzipWriter;
6 7 1 ioe Ljava/io/IOException;
Exception table:
from to target type
1 4 5 Class java.io.IOException
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"close"})
public org.jruby.runtime.builtin.IRubyObject append(org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.jruby.ext.zlib.JZlibRubyGzipWriter.write:(Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
pop
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ext/zlib/JZlibRubyGzipWriter;
0 2 1 p1 Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"append", "<<"}, required = 1)
MethodParameters:
Name Flags
p1
public org.jruby.runtime.builtin.IRubyObject printf(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject[]);
descriptor: (Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 0
aload 2
invokestatic org.jruby.RubyKernel.sprintf:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
invokevirtual org.jruby.ext.zlib.JZlibRubyGzipWriter.write:(Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
pop
1: aload 1
invokevirtual org.jruby.runtime.ThreadContext.getRuntime:()Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getNil:()Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ext/zlib/JZlibRubyGzipWriter;
0 2 1 context Lorg/jruby/runtime/ThreadContext;
0 2 2 args [Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"printf"}, required = 1, rest = true)
MethodParameters:
Name Flags
context
args
public org.jruby.runtime.builtin.IRubyObject print(org.jruby.runtime.builtin.IRubyObject[]);
descriptor: ([Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 1
arraylength
ifeq 7
1: iconst_0
istore 2
start local 2 2: aload 1
arraylength
istore 3
start local 3 3: goto 6
4: StackMap locals: int int
StackMap stack:
aload 0
aload 1
iload 2
aaload
invokevirtual org.jruby.ext.zlib.JZlibRubyGzipWriter.write:(Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
pop
5: iinc 2 1
StackMap locals:
StackMap stack:
6: iload 2
iload 3
if_icmplt 4
end local 3 end local 2 7: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.jruby.ext.zlib.JZlibRubyGzipWriter.getRuntime:()Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getGlobalVariables:()Lorg/jruby/internal/runtime/GlobalVariables;
ldc "$\\"
invokevirtual org.jruby.internal.runtime.GlobalVariables.get:(Ljava/lang/String;)Lorg/jruby/runtime/builtin/IRubyObject;
astore 2
start local 2 8: aload 2
invokeinterface org.jruby.runtime.builtin.IRubyObject.isNil:()Z
ifne 9
aload 0
aload 2
invokevirtual org.jruby.ext.zlib.JZlibRubyGzipWriter.write:(Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
pop
9: StackMap locals: org.jruby.runtime.builtin.IRubyObject
StackMap stack:
aload 0
invokevirtual org.jruby.ext.zlib.JZlibRubyGzipWriter.getRuntime:()Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getNil:()Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/jruby/ext/zlib/JZlibRubyGzipWriter;
0 10 1 args [Lorg/jruby/runtime/builtin/IRubyObject;
2 7 2 i I
3 7 3 j I
8 10 2 sep Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"print"}, rest = true)
MethodParameters:
Name Flags
args
public org.jruby.runtime.builtin.IRubyObject pos();
descriptor: ()Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.ext.zlib.JZlibRubyGzipWriter.getRuntime:()Lorg/jruby/Ruby;
aload 0
getfield org.jruby.ext.zlib.JZlibRubyGzipWriter.io:Lcom/jcraft/jzlib/GZIPOutputStream;
invokevirtual com.jcraft.jzlib.GZIPOutputStream.getTotalIn:()J
invokestatic org.jruby.RubyNumeric.int2fix:(Lorg/jruby/Ruby;J)Lorg/jruby/RubyNumeric;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/zlib/JZlibRubyGzipWriter;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"pos", "tell"})
public org.jruby.runtime.builtin.IRubyObject set_orig_name(org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokeinterface org.jruby.runtime.builtin.IRubyObject.convertToString:()Lorg/jruby/RubyString;
aload 0
invokevirtual org.jruby.ext.zlib.JZlibRubyGzipWriter.getRuntime:()Lorg/jruby/Ruby;
invokevirtual org.jruby.RubyString.strDup:(Lorg/jruby/Ruby;)Lorg/jruby/RubyString;
putfield org.jruby.ext.zlib.JZlibRubyGzipWriter.nullFreeOrigName:Lorg/jruby/RubyString;
1: aload 0
aload 0
getfield org.jruby.ext.zlib.JZlibRubyGzipWriter.nullFreeOrigName:Lorg/jruby/RubyString;
invokevirtual org.jruby.ext.zlib.JZlibRubyGzipWriter.ensureNonNull:(Lorg/jruby/RubyString;)V
2: aload 0
getfield org.jruby.ext.zlib.JZlibRubyGzipWriter.io:Lcom/jcraft/jzlib/GZIPOutputStream;
aload 0
getfield org.jruby.ext.zlib.JZlibRubyGzipWriter.nullFreeOrigName:Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.toString:()Ljava/lang/String;
invokevirtual com.jcraft.jzlib.GZIPOutputStream.setName:(Ljava/lang/String;)V
3: goto 6
StackMap locals:
StackMap stack: com.jcraft.jzlib.GZIPException
4: pop
5: aload 0
invokevirtual org.jruby.ext.zlib.JZlibRubyGzipWriter.getRuntime:()Lorg/jruby/Ruby;
ldc "header is already written"
invokestatic org.jruby.ext.zlib.RubyZlib.newGzipFileError:(Lorg/jruby/Ruby;Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
6: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/jruby/ext/zlib/JZlibRubyGzipWriter;
0 7 1 obj Lorg/jruby/runtime/builtin/IRubyObject;
Exception table:
from to target type
2 3 4 Class com.jcraft.jzlib.GZIPException
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"orig_name="}, required = 1)
MethodParameters:
Name Flags
obj
public org.jruby.runtime.builtin.IRubyObject (org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokeinterface org.jruby.runtime.builtin.IRubyObject.convertToString:()Lorg/jruby/RubyString;
aload 0
invokevirtual org.jruby.ext.zlib.JZlibRubyGzipWriter.getRuntime:()Lorg/jruby/Ruby;
invokevirtual org.jruby.RubyString.strDup:(Lorg/jruby/Ruby;)Lorg/jruby/RubyString;
putfield org.jruby.ext.zlib.JZlibRubyGzipWriter.nullFreeComment:Lorg/jruby/RubyString;
1: aload 0
aload 0
getfield org.jruby.ext.zlib.JZlibRubyGzipWriter.nullFreeComment:Lorg/jruby/RubyString;
invokevirtual org.jruby.ext.zlib.JZlibRubyGzipWriter.ensureNonNull:(Lorg/jruby/RubyString;)V
2: aload 0
getfield org.jruby.ext.zlib.JZlibRubyGzipWriter.io:Lcom/jcraft/jzlib/GZIPOutputStream;
aload 0
getfield org.jruby.ext.zlib.JZlibRubyGzipWriter.nullFreeComment:Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.toString:()Ljava/lang/String;
invokevirtual com.jcraft.jzlib.GZIPOutputStream.setComment:(Ljava/lang/String;)V
3: goto 6
StackMap locals:
StackMap stack: com.jcraft.jzlib.GZIPException
4: pop
5: aload 0
invokevirtual org.jruby.ext.zlib.JZlibRubyGzipWriter.getRuntime:()Lorg/jruby/Ruby;
ldc "header is already written"
invokestatic org.jruby.ext.zlib.RubyZlib.newGzipFileError:(Lorg/jruby/Ruby;Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
6: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/jruby/ext/zlib/JZlibRubyGzipWriter;
0 7 1 obj Lorg/jruby/runtime/builtin/IRubyObject;
Exception table:
from to target type
2 3 4 Class com.jcraft.jzlib.GZIPException
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"comment="}, required = 1)
MethodParameters:
Name Flags
obj
private void ensureNonNull(org.jruby.RubyString);
descriptor: (Lorg/jruby/RubyString;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual org.jruby.RubyString.toString:()Ljava/lang/String;
astore 2
start local 2 1: aload 2
iconst_0
invokevirtual java.lang.String.indexOf:(I)I
iflt 4
2: aload 2
iconst_0
aload 2
iconst_0
invokevirtual java.lang.String.indexOf:(I)I
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 3
start local 3 3: aload 1
new org.jruby.util.ByteList
dup
aload 3
invokevirtual java.lang.String.getBytes:()[B
invokespecial org.jruby.util.ByteList.<init>:([B)V
invokevirtual org.jruby.RubyString.setValue:(Lorg/jruby/util/ByteList;)V
end local 3 4: StackMap locals: java.lang.String
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/jruby/ext/zlib/JZlibRubyGzipWriter;
0 5 1 obj Lorg/jruby/RubyString;
1 5 2 str Ljava/lang/String;
3 4 3 trim Ljava/lang/String;
MethodParameters:
Name Flags
obj
public org.jruby.runtime.builtin.IRubyObject putc(org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.ext.zlib.JZlibRubyGzipWriter.io:Lcom/jcraft/jzlib/GZIPOutputStream;
aload 1
invokestatic org.jruby.RubyNumeric.num2chr:(Lorg/jruby/runtime/builtin/IRubyObject;)B
invokevirtual com.jcraft.jzlib.GZIPOutputStream.write:(I)V
1: aload 1
2: areturn
3: StackMap locals:
StackMap stack: java.io.IOException
astore 2
start local 2 4: aload 0
invokevirtual org.jruby.ext.zlib.JZlibRubyGzipWriter.getRuntime:()Lorg/jruby/Ruby;
aload 2
invokevirtual org.jruby.Ruby.newIOErrorFromException:(Ljava/io/IOException;)Lorg/jruby/exceptions/RaiseException;
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/jruby/ext/zlib/JZlibRubyGzipWriter;
0 5 1 p1 Lorg/jruby/runtime/builtin/IRubyObject;
4 5 2 ioe Ljava/io/IOException;
Exception table:
from to target type
0 2 3 Class java.io.IOException
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"putc"}, required = 1)
MethodParameters:
Name Flags
p1
public org.jruby.runtime.builtin.IRubyObject puts(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject[]);
descriptor: (Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
ldc "StringIO"
invokevirtual org.jruby.Ruby.getClass:(Ljava/lang/String;)Lorg/jruby/RubyClass;
astore 3
start local 3 1: aload 3
aload 1
getstatic org.jruby.runtime.builtin.IRubyObject.NULL_ARRAY:[Lorg/jruby/runtime/builtin/IRubyObject;
getstatic org.jruby.runtime.Block.NULL_BLOCK:Lorg/jruby/runtime/Block;
invokevirtual org.jruby.RubyClass.newInstance:(Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
checkcast org.jruby.ext.stringio.StringIO
astore 4
start local 4 2: aload 4
aload 1
aload 2
invokevirtual org.jruby.ext.stringio.StringIO.puts:(Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
pop
3: aload 0
aload 4
aload 1
invokevirtual org.jruby.ext.stringio.StringIO.string:(Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
invokevirtual org.jruby.ext.zlib.JZlibRubyGzipWriter.write:(Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
pop
4: aload 1
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/jruby/ext/zlib/JZlibRubyGzipWriter;
0 5 1 context Lorg/jruby/runtime/ThreadContext;
0 5 2 args [Lorg/jruby/runtime/builtin/IRubyObject;
1 5 3 StringIO Lorg/jruby/RubyClass;
2 5 4 sio Lorg/jruby/ext/stringio/StringIO;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"puts"}, rest = true)
MethodParameters:
Name Flags
context
args
public org.jruby.runtime.builtin.IRubyObject finish();
descriptor: ()Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield org.jruby.ext.zlib.JZlibRubyGzipWriter.finished:Z
ifne 5
1: aload 0
getfield org.jruby.ext.zlib.JZlibRubyGzipWriter.io:Lcom/jcraft/jzlib/GZIPOutputStream;
invokevirtual com.jcraft.jzlib.GZIPOutputStream.finish:()V
2: goto 5
StackMap locals:
StackMap stack: java.io.IOException
3: astore 1
start local 1 4: aload 0
invokevirtual org.jruby.ext.zlib.JZlibRubyGzipWriter.getRuntime:()Lorg/jruby/Ruby;
aload 1
invokevirtual org.jruby.Ruby.newIOErrorFromException:(Ljava/io/IOException;)Lorg/jruby/exceptions/RaiseException;
athrow
end local 1 5: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield org.jruby.ext.zlib.JZlibRubyGzipWriter.finished:Z
6: aload 0
getfield org.jruby.ext.zlib.JZlibRubyGzipWriter.realIo:Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/jruby/ext/zlib/JZlibRubyGzipWriter;
4 5 1 ioe Ljava/io/IOException;
Exception table:
from to target type
1 2 3 Class java.io.IOException
public org.jruby.runtime.builtin.IRubyObject flush(org.jruby.runtime.builtin.IRubyObject[]);
descriptor: ([Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=6, args_size=2
start local 0 start local 1 0: iconst_2
istore 2
start local 2 1: aload 1
arraylength
ifle 3
aload 1
iconst_0
aaload
invokeinterface org.jruby.runtime.builtin.IRubyObject.isNil:()Z
ifne 3
2: aload 1
iconst_0
aaload
invokestatic org.jruby.RubyNumeric.fix2int:(Lorg/jruby/runtime/builtin/IRubyObject;)I
istore 2
3: StackMap locals: int
StackMap stack:
aload 0
getfield org.jruby.ext.zlib.JZlibRubyGzipWriter.io:Lcom/jcraft/jzlib/GZIPOutputStream;
invokevirtual com.jcraft.jzlib.GZIPOutputStream.getSyncFlush:()Z
istore 3
start local 3 4: iload 2
ifeq 6
5: aload 0
getfield org.jruby.ext.zlib.JZlibRubyGzipWriter.io:Lcom/jcraft/jzlib/GZIPOutputStream;
iconst_1
invokevirtual com.jcraft.jzlib.GZIPOutputStream.setSyncFlush:(Z)V
6: StackMap locals: int
StackMap stack:
aload 0
getfield org.jruby.ext.zlib.JZlibRubyGzipWriter.io:Lcom/jcraft/jzlib/GZIPOutputStream;
invokevirtual com.jcraft.jzlib.GZIPOutputStream.flush:()V
7: goto 13
StackMap locals:
StackMap stack: java.io.IOException
8: astore 4
start local 4 9: aload 0
invokevirtual org.jruby.ext.zlib.JZlibRubyGzipWriter.getRuntime:()Lorg/jruby/Ruby;
aload 4
invokevirtual org.jruby.Ruby.newIOErrorFromException:(Ljava/io/IOException;)Lorg/jruby/exceptions/RaiseException;
athrow
end local 4 10: StackMap locals:
StackMap stack: java.lang.Throwable
astore 5
11: aload 0
getfield org.jruby.ext.zlib.JZlibRubyGzipWriter.io:Lcom/jcraft/jzlib/GZIPOutputStream;
iload 3
invokevirtual com.jcraft.jzlib.GZIPOutputStream.setSyncFlush:(Z)V
12: aload 5
athrow
13: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.ext.zlib.JZlibRubyGzipWriter.io:Lcom/jcraft/jzlib/GZIPOutputStream;
iload 3
invokevirtual com.jcraft.jzlib.GZIPOutputStream.setSyncFlush:(Z)V
14: aload 0
invokevirtual org.jruby.ext.zlib.JZlibRubyGzipWriter.getRuntime:()Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getNil:()Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lorg/jruby/ext/zlib/JZlibRubyGzipWriter;
0 15 1 args [Lorg/jruby/runtime/builtin/IRubyObject;
1 15 2 flush I
4 15 3 tmp Z
9 10 4 ioe Ljava/io/IOException;
Exception table:
from to target type
4 7 8 Class java.io.IOException
4 10 10 any
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"flush"}, optional = 1)
MethodParameters:
Name Flags
args
public org.jruby.runtime.builtin.IRubyObject set_mtime(org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=2, args_size=2
start local 0 start local 1 0: aload 1
instanceof org.jruby.RubyTime
ifeq 3
1: aload 0
aload 1
checkcast org.jruby.RubyTime
putfield org.jruby.ext.zlib.JZlibRubyGzipWriter.mtime:Lorg/jruby/RubyTime;
2: goto 5
StackMap locals:
StackMap stack:
3: aload 1
invokeinterface org.jruby.runtime.builtin.IRubyObject.isNil:()Z
ifne 5
4: aload 0
getfield org.jruby.ext.zlib.JZlibRubyGzipWriter.mtime:Lorg/jruby/RubyTime;
new org.joda.time.DateTime
dup
aload 1
invokestatic org.jruby.RubyNumeric.fix2long:(Lorg/jruby/runtime/builtin/IRubyObject;)J
ldc 1000
lmul
invokespecial org.joda.time.DateTime.<init>:(J)V
invokevirtual org.jruby.RubyTime.setDateTime:(Lorg/joda/time/DateTime;)V
5: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.ext.zlib.JZlibRubyGzipWriter.io:Lcom/jcraft/jzlib/GZIPOutputStream;
aload 0
getfield org.jruby.ext.zlib.JZlibRubyGzipWriter.mtime:Lorg/jruby/RubyTime;
invokevirtual org.jruby.RubyTime.to_i:()Lorg/jruby/RubyInteger;
invokevirtual org.jruby.RubyInteger.getLongValue:()J
invokevirtual com.jcraft.jzlib.GZIPOutputStream.setModifiedTime:(J)V
6: goto 9
StackMap locals:
StackMap stack: com.jcraft.jzlib.GZIPException
7: pop
8: aload 0
invokevirtual org.jruby.ext.zlib.JZlibRubyGzipWriter.getRuntime:()Lorg/jruby/Ruby;
ldc "header is already written"
invokestatic org.jruby.ext.zlib.RubyZlib.newGzipFileError:(Lorg/jruby/Ruby;Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
9: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.jruby.ext.zlib.JZlibRubyGzipWriter.getRuntime:()Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getNil:()Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/jruby/ext/zlib/JZlibRubyGzipWriter;
0 10 1 arg Lorg/jruby/runtime/builtin/IRubyObject;
Exception table:
from to target type
5 6 7 Class com.jcraft.jzlib.GZIPException
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"mtime="}, required = 1)
MethodParameters:
Name Flags
arg
public org.jruby.runtime.builtin.IRubyObject crc();
descriptor: ()Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: lconst_0
lstore 1
start local 1 1: aload 0
getfield org.jruby.ext.zlib.JZlibRubyGzipWriter.io:Lcom/jcraft/jzlib/GZIPOutputStream;
invokevirtual com.jcraft.jzlib.GZIPOutputStream.getCRC:()J
lstore 1
2: goto 4
StackMap locals: org.jruby.ext.zlib.JZlibRubyGzipWriter long
StackMap stack: com.jcraft.jzlib.GZIPException
3: pop
4: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.jruby.ext.zlib.JZlibRubyGzipWriter.getRuntime:()Lorg/jruby/Ruby;
lload 1
invokevirtual org.jruby.Ruby.newFixnum:(J)Lorg/jruby/RubyFixnum;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/jruby/ext/zlib/JZlibRubyGzipWriter;
1 5 1 crc J
Exception table:
from to target type
1 2 3 Class com.jcraft.jzlib.GZIPException
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"crc"})
public org.jruby.runtime.builtin.IRubyObject write(org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=5, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.jruby.ext.zlib.JZlibRubyGzipWriter.getRuntime:()Lorg/jruby/Ruby;
astore 2
start local 2 1: aload 1
invokeinterface org.jruby.runtime.builtin.IRubyObject.asString:()Lorg/jruby/RubyString;
astore 3
start local 3 2: aload 0
getfield org.jruby.ext.zlib.JZlibRubyGzipWriter.enc2:Lorg/jcodings/Encoding;
ifnull 7
3: aload 0
getfield org.jruby.ext.zlib.JZlibRubyGzipWriter.enc2:Lorg/jcodings/Encoding;
getstatic org.jcodings.specific.ASCIIEncoding.INSTANCE:Lorg/jcodings/specific/ASCIIEncoding;
if_acmpeq 7
4: aload 2
invokevirtual org.jruby.Ruby.getCurrentContext:()Lorg/jruby/runtime/ThreadContext;
aload 3
aload 3
invokevirtual org.jruby.RubyString.getEncoding:()Lorg/jcodings/Encoding;
5: aload 0
getfield org.jruby.ext.zlib.JZlibRubyGzipWriter.enc2:Lorg/jcodings/Encoding;
iconst_0
aload 2
invokevirtual org.jruby.Ruby.getNil:()Lorg/jruby/runtime/builtin/IRubyObject;
6: invokestatic org.jruby.util.io.EncodingUtils.strConvEncOpts:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/RubyString;Lorg/jcodings/Encoding;Lorg/jcodings/Encoding;ILorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyString;
astore 3
7: StackMap locals: org.jruby.Ruby org.jruby.RubyString
StackMap stack:
aload 3
invokevirtual org.jruby.RubyString.size:()I
ifle 9
8: aload 0
getfield org.jruby.ext.zlib.JZlibRubyGzipWriter.io:Lcom/jcraft/jzlib/GZIPOutputStream;
aload 3
invokevirtual org.jruby.RubyString.getByteList:()Lorg/jruby/util/ByteList;
invokevirtual org.jruby.util.ByteList.getUnsafeBytes:()[B
aload 3
invokevirtual org.jruby.RubyString.getByteList:()Lorg/jruby/util/ByteList;
invokevirtual org.jruby.util.ByteList.begin:()I
aload 3
invokevirtual org.jruby.RubyString.getByteList:()Lorg/jruby/util/ByteList;
invokevirtual org.jruby.util.ByteList.length:()I
invokevirtual com.jcraft.jzlib.GZIPOutputStream.write:([BII)V
9: StackMap locals:
StackMap stack:
aload 2
aload 3
invokevirtual org.jruby.RubyString.getByteList:()Lorg/jruby/util/ByteList;
invokevirtual org.jruby.util.ByteList.length:()I
invokevirtual org.jruby.Ruby.newFixnum:(I)Lorg/jruby/RubyFixnum;
10: areturn
11: StackMap locals:
StackMap stack: java.io.IOException
astore 4
start local 4 12: aload 2
aload 4
invokevirtual org.jruby.Ruby.newIOErrorFromException:(Ljava/io/IOException;)Lorg/jruby/exceptions/RaiseException;
athrow
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/jruby/ext/zlib/JZlibRubyGzipWriter;
0 13 1 p1 Lorg/jruby/runtime/builtin/IRubyObject;
1 13 2 runtime Lorg/jruby/Ruby;
2 13 3 str Lorg/jruby/RubyString;
12 13 4 ioe Ljava/io/IOException;
Exception table:
from to target type
7 10 11 Class java.io.IOException
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"write"}, required = 1)
MethodParameters:
Name Flags
p1
public org.jruby.runtime.builtin.IRubyObject set_sync(org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial org.jruby.ext.zlib.RubyGzipFile.set_sync:(Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
astore 2
start local 2 1: aload 0
getfield org.jruby.ext.zlib.JZlibRubyGzipWriter.io:Lcom/jcraft/jzlib/GZIPOutputStream;
aload 0
getfield org.jruby.ext.zlib.JZlibRubyGzipWriter.sync:Z
invokevirtual com.jcraft.jzlib.GZIPOutputStream.setSyncFlush:(Z)V
2: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/ext/zlib/JZlibRubyGzipWriter;
0 3 1 arg Lorg/jruby/runtime/builtin/IRubyObject;
1 3 2 s Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod()
MethodParameters:
Name Flags
arg
}
SourceFile: "JZlibRubyGzipWriter.java"
NestMembers:
org.jruby.ext.zlib.JZlibRubyGzipWriter$1 org.jruby.ext.zlib.JZlibRubyGzipWriter$2
InnerClasses:
org.jruby.ext.zlib.JZlibRubyGzipWriter$1
org.jruby.ext.zlib.JZlibRubyGzipWriter$2
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyClass(name = {"Zlib::GzipWriter"}, parent = "Zlib::GzipFile")