public class org.glassfish.grizzly.compression.zip.GZipEncoder extends org.glassfish.grizzly.AbstractTransformer<org.glassfish.grizzly.Buffer, org.glassfish.grizzly.Buffer>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.glassfish.grizzly.compression.zip.GZipEncoder
super_class: org.glassfish.grizzly.AbstractTransformer
{
private static final int GZIP_MAGIC;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 35615
private static final int TRAILER_SIZE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 8
private final int bufferSize;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private static final org.glassfish.grizzly.Buffer ;
descriptor: Lorg/glassfish/grizzly/Buffer;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: getstatic org.glassfish.grizzly.memory.MemoryManager.DEFAULT_MEMORY_MANAGER:Lorg/glassfish/grizzly/memory/MemoryManager;
bipush 10
invokeinterface org.glassfish.grizzly.memory.MemoryManager.allocate:(I)Lorg/glassfish/grizzly/Buffer;
putstatic org.glassfish.grizzly.compression.zip.GZipEncoder.header:Lorg/glassfish/grizzly/Buffer;
1: getstatic org.glassfish.grizzly.compression.zip.GZipEncoder.header:Lorg/glassfish/grizzly/Buffer;
bipush 31
invokeinterface org.glassfish.grizzly.Buffer.put:(B)Lorg/glassfish/grizzly/Buffer;
pop
2: getstatic org.glassfish.grizzly.compression.zip.GZipEncoder.header:Lorg/glassfish/grizzly/Buffer;
bipush -117
invokeinterface org.glassfish.grizzly.Buffer.put:(B)Lorg/glassfish/grizzly/Buffer;
pop
3: getstatic org.glassfish.grizzly.compression.zip.GZipEncoder.header:Lorg/glassfish/grizzly/Buffer;
bipush 8
invokeinterface org.glassfish.grizzly.Buffer.put:(B)Lorg/glassfish/grizzly/Buffer;
pop
4: getstatic org.glassfish.grizzly.compression.zip.GZipEncoder.header:Lorg/glassfish/grizzly/Buffer;
iconst_0
invokeinterface org.glassfish.grizzly.Buffer.put:(B)Lorg/glassfish/grizzly/Buffer;
pop
5: getstatic org.glassfish.grizzly.compression.zip.GZipEncoder.header:Lorg/glassfish/grizzly/Buffer;
iconst_0
invokeinterface org.glassfish.grizzly.Buffer.put:(B)Lorg/glassfish/grizzly/Buffer;
pop
6: getstatic org.glassfish.grizzly.compression.zip.GZipEncoder.header:Lorg/glassfish/grizzly/Buffer;
iconst_0
invokeinterface org.glassfish.grizzly.Buffer.put:(B)Lorg/glassfish/grizzly/Buffer;
pop
7: getstatic org.glassfish.grizzly.compression.zip.GZipEncoder.header:Lorg/glassfish/grizzly/Buffer;
iconst_0
invokeinterface org.glassfish.grizzly.Buffer.put:(B)Lorg/glassfish/grizzly/Buffer;
pop
8: getstatic org.glassfish.grizzly.compression.zip.GZipEncoder.header:Lorg/glassfish/grizzly/Buffer;
iconst_0
invokeinterface org.glassfish.grizzly.Buffer.put:(B)Lorg/glassfish/grizzly/Buffer;
pop
9: getstatic org.glassfish.grizzly.compression.zip.GZipEncoder.header:Lorg/glassfish/grizzly/Buffer;
iconst_0
invokeinterface org.glassfish.grizzly.Buffer.put:(B)Lorg/glassfish/grizzly/Buffer;
pop
10: getstatic org.glassfish.grizzly.compression.zip.GZipEncoder.header:Lorg/glassfish/grizzly/Buffer;
iconst_0
invokeinterface org.glassfish.grizzly.Buffer.put:(B)Lorg/glassfish/grizzly/Buffer;
pop
11: getstatic org.glassfish.grizzly.compression.zip.GZipEncoder.header:Lorg/glassfish/grizzly/Buffer;
invokeinterface org.glassfish.grizzly.Buffer.flip:()Lorg/glassfish/grizzly/Buffer;
pop
12: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
sipush 512
invokespecial org.glassfish.grizzly.compression.zip.GZipEncoder.<init>:(I)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/compression/zip/GZipEncoder;
public void <init>(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial org.glassfish.grizzly.AbstractTransformer.<init>:()V
1: aload 0
iload 1
putfield org.glassfish.grizzly.compression.zip.GZipEncoder.bufferSize:I
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/glassfish/grizzly/compression/zip/GZipEncoder;
0 3 1 bufferSize I
MethodParameters:
Name Flags
bufferSize
public java.lang.String getName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc "gzip-encoder"
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/compression/zip/GZipEncoder;
public boolean hasInputRemaining(org.glassfish.grizzly.attributes.AttributeStorage, org.glassfish.grizzly.Buffer);
descriptor: (Lorg/glassfish/grizzly/attributes/AttributeStorage;Lorg/glassfish/grizzly/Buffer;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokeinterface org.glassfish.grizzly.Buffer.hasRemaining:()Z
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/compression/zip/GZipEncoder;
0 1 1 storage Lorg/glassfish/grizzly/attributes/AttributeStorage;
0 1 2 input Lorg/glassfish/grizzly/Buffer;
MethodParameters:
Name Flags
storage
input
protected org.glassfish.grizzly.compression.zip.GZipEncoder$GZipOutputState createStateObject();
descriptor: ()Lorg/glassfish/grizzly/compression/zip/GZipEncoder$GZipOutputState;
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=1, args_size=1
start local 0 0: new org.glassfish.grizzly.compression.zip.GZipEncoder$GZipOutputState
dup
invokespecial org.glassfish.grizzly.compression.zip.GZipEncoder$GZipOutputState.<init>:()V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/compression/zip/GZipEncoder;
protected org.glassfish.grizzly.TransformationResult<org.glassfish.grizzly.Buffer, org.glassfish.grizzly.Buffer> transformImpl(org.glassfish.grizzly.attributes.AttributeStorage, org.glassfish.grizzly.Buffer);
descriptor: (Lorg/glassfish/grizzly/attributes/AttributeStorage;Lorg/glassfish/grizzly/Buffer;)Lorg/glassfish/grizzly/TransformationResult;
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokevirtual org.glassfish.grizzly.compression.zip.GZipEncoder.obtainMemoryManager:(Lorg/glassfish/grizzly/attributes/AttributeStorage;)Lorg/glassfish/grizzly/memory/MemoryManager;
astore 3
start local 3 1: aload 0
aload 1
invokevirtual org.glassfish.grizzly.compression.zip.GZipEncoder.obtainStateObject:(Lorg/glassfish/grizzly/attributes/AttributeStorage;)Lorg/glassfish/grizzly/AbstractTransformer$LastResultAwareState;
checkcast org.glassfish.grizzly.compression.zip.GZipEncoder$GZipOutputState
astore 4
start local 4 2: aload 4
getfield org.glassfish.grizzly.compression.zip.GZipEncoder$GZipOutputState.isInitialized:Z
ifne 4
3: aload 4
invokevirtual org.glassfish.grizzly.compression.zip.GZipEncoder$GZipOutputState.initialize:()V
4: StackMap locals: org.glassfish.grizzly.memory.MemoryManager org.glassfish.grizzly.compression.zip.GZipEncoder$GZipOutputState
StackMap stack:
aconst_null
astore 5
start local 5 5: aload 2
ifnull 7
aload 2
invokeinterface org.glassfish.grizzly.Buffer.hasRemaining:()Z
ifeq 7
6: aload 0
aload 2
aload 4
aload 3
invokevirtual org.glassfish.grizzly.compression.zip.GZipEncoder.encodeBuffer:(Lorg/glassfish/grizzly/Buffer;Lorg/glassfish/grizzly/compression/zip/GZipEncoder$GZipOutputState;Lorg/glassfish/grizzly/memory/MemoryManager;)Lorg/glassfish/grizzly/Buffer;
astore 5
7: StackMap locals: org.glassfish.grizzly.Buffer
StackMap stack:
aload 5
ifnonnull 9
8: aconst_null
invokestatic org.glassfish.grizzly.TransformationResult.createIncompletedResult:(Ljava/lang/Object;)Lorg/glassfish/grizzly/TransformationResult;
areturn
9: StackMap locals:
StackMap stack:
aload 4
getfield org.glassfish.grizzly.compression.zip.GZipEncoder$GZipOutputState.isHeaderWritten:Z
ifne 12
10: aload 4
iconst_1
putfield org.glassfish.grizzly.compression.zip.GZipEncoder$GZipOutputState.isHeaderWritten:Z
11: aload 3
aload 0
invokevirtual org.glassfish.grizzly.compression.zip.GZipEncoder.getHeader:()Lorg/glassfish/grizzly/Buffer;
aload 5
invokestatic org.glassfish.grizzly.memory.Buffers.appendBuffers:(Lorg/glassfish/grizzly/memory/MemoryManager;Lorg/glassfish/grizzly/Buffer;Lorg/glassfish/grizzly/Buffer;)Lorg/glassfish/grizzly/Buffer;
astore 5
12: StackMap locals:
StackMap stack:
aload 5
aconst_null
invokestatic org.glassfish.grizzly.TransformationResult.createCompletedResult:(Ljava/lang/Object;Ljava/lang/Object;)Lorg/glassfish/grizzly/TransformationResult;
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 13 0 this Lorg/glassfish/grizzly/compression/zip/GZipEncoder;
0 13 1 storage Lorg/glassfish/grizzly/attributes/AttributeStorage;
0 13 2 input Lorg/glassfish/grizzly/Buffer;
1 13 3 memoryManager Lorg/glassfish/grizzly/memory/MemoryManager;
2 13 4 state Lorg/glassfish/grizzly/compression/zip/GZipEncoder$GZipOutputState;
5 13 5 encodedBuffer Lorg/glassfish/grizzly/Buffer;
Exceptions:
throws org.glassfish.grizzly.TransformationException
Signature: (Lorg/glassfish/grizzly/attributes/AttributeStorage;Lorg/glassfish/grizzly/Buffer;)Lorg/glassfish/grizzly/TransformationResult<Lorg/glassfish/grizzly/Buffer;Lorg/glassfish/grizzly/Buffer;>;
MethodParameters:
Name Flags
storage
input
public org.glassfish.grizzly.Buffer finish(org.glassfish.grizzly.attributes.AttributeStorage);
descriptor: (Lorg/glassfish/grizzly/attributes/AttributeStorage;)Lorg/glassfish/grizzly/Buffer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=8, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.glassfish.grizzly.compression.zip.GZipEncoder.obtainMemoryManager:(Lorg/glassfish/grizzly/attributes/AttributeStorage;)Lorg/glassfish/grizzly/memory/MemoryManager;
astore 2
start local 2 1: aload 0
aload 1
invokevirtual org.glassfish.grizzly.compression.zip.GZipEncoder.obtainStateObject:(Lorg/glassfish/grizzly/attributes/AttributeStorage;)Lorg/glassfish/grizzly/AbstractTransformer$LastResultAwareState;
checkcast org.glassfish.grizzly.compression.zip.GZipEncoder$GZipOutputState
astore 3
start local 3 2: aconst_null
astore 4
start local 4 3: aload 3
getfield org.glassfish.grizzly.compression.zip.GZipEncoder$GZipOutputState.isInitialized:Z
ifeq 20
4: aload 3
getfield org.glassfish.grizzly.compression.zip.GZipEncoder$GZipOutputState.deflater:Ljava/util/zip/Deflater;
astore 5
start local 5 5: aload 5
invokevirtual java.util.zip.Deflater.finished:()Z
ifne 19
6: aload 5
invokevirtual java.util.zip.Deflater.finish:()V
7: goto 9
8: StackMap locals: org.glassfish.grizzly.compression.zip.GZipEncoder org.glassfish.grizzly.attributes.AttributeStorage org.glassfish.grizzly.memory.MemoryManager org.glassfish.grizzly.compression.zip.GZipEncoder$GZipOutputState org.glassfish.grizzly.Buffer java.util.zip.Deflater
StackMap stack:
aload 2
aload 4
aload 0
aload 5
aload 2
invokevirtual org.glassfish.grizzly.compression.zip.GZipEncoder.deflate:(Ljava/util/zip/Deflater;Lorg/glassfish/grizzly/memory/MemoryManager;)Lorg/glassfish/grizzly/Buffer;
invokestatic org.glassfish.grizzly.memory.Buffers.appendBuffers:(Lorg/glassfish/grizzly/memory/MemoryManager;Lorg/glassfish/grizzly/Buffer;Lorg/glassfish/grizzly/Buffer;)Lorg/glassfish/grizzly/Buffer;
astore 4
9: StackMap locals:
StackMap stack:
aload 5
invokevirtual java.util.zip.Deflater.finished:()Z
ifeq 8
10: aload 3
getfield org.glassfish.grizzly.compression.zip.GZipEncoder$GZipOutputState.isHeaderWritten:Z
ifne 13
11: aload 3
iconst_1
putfield org.glassfish.grizzly.compression.zip.GZipEncoder$GZipOutputState.isHeaderWritten:Z
12: aload 2
aload 0
invokevirtual org.glassfish.grizzly.compression.zip.GZipEncoder.getHeader:()Lorg/glassfish/grizzly/Buffer;
aload 4
invokestatic org.glassfish.grizzly.memory.Buffers.appendBuffers:(Lorg/glassfish/grizzly/memory/MemoryManager;Lorg/glassfish/grizzly/Buffer;Lorg/glassfish/grizzly/Buffer;)Lorg/glassfish/grizzly/Buffer;
astore 4
13: StackMap locals:
StackMap stack:
aload 2
bipush 8
invokeinterface org.glassfish.grizzly.memory.MemoryManager.allocate:(I)Lorg/glassfish/grizzly/Buffer;
astore 6
start local 6 14: aload 3
getfield org.glassfish.grizzly.compression.zip.GZipEncoder$GZipOutputState.crc32:Ljava/util/zip/CRC32;
astore 7
start local 7 15: aload 6
aload 7
invokevirtual java.util.zip.CRC32.getValue:()J
l2i
invokestatic org.glassfish.grizzly.compression.zip.GZipEncoder.putUInt:(Lorg/glassfish/grizzly/Buffer;I)V
16: aload 6
aload 5
invokevirtual java.util.zip.Deflater.getTotalIn:()I
invokestatic org.glassfish.grizzly.compression.zip.GZipEncoder.putUInt:(Lorg/glassfish/grizzly/Buffer;I)V
17: aload 6
invokeinterface org.glassfish.grizzly.Buffer.flip:()Lorg/glassfish/grizzly/Buffer;
pop
18: aload 2
aload 4
aload 6
invokestatic org.glassfish.grizzly.memory.Buffers.appendBuffers:(Lorg/glassfish/grizzly/memory/MemoryManager;Lorg/glassfish/grizzly/Buffer;Lorg/glassfish/grizzly/Buffer;)Lorg/glassfish/grizzly/Buffer;
astore 4
end local 7 end local 6 19: StackMap locals:
StackMap stack:
aload 3
invokevirtual org.glassfish.grizzly.compression.zip.GZipEncoder$GZipOutputState.reset:()V
end local 5 20: StackMap locals:
StackMap stack:
aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Lorg/glassfish/grizzly/compression/zip/GZipEncoder;
0 21 1 storage Lorg/glassfish/grizzly/attributes/AttributeStorage;
1 21 2 memoryManager Lorg/glassfish/grizzly/memory/MemoryManager;
2 21 3 state Lorg/glassfish/grizzly/compression/zip/GZipEncoder$GZipOutputState;
3 21 4 resultBuffer Lorg/glassfish/grizzly/Buffer;
5 20 5 deflater Ljava/util/zip/Deflater;
14 19 6 trailer Lorg/glassfish/grizzly/Buffer;
15 19 7 crc32 Ljava/util/zip/CRC32;
MethodParameters:
Name Flags
storage
private org.glassfish.grizzly.Buffer ();
descriptor: ()Lorg/glassfish/grizzly/Buffer;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=1
start local 0 0: getstatic org.glassfish.grizzly.compression.zip.GZipEncoder.header:Lorg/glassfish/grizzly/Buffer;
invokeinterface org.glassfish.grizzly.Buffer.duplicate:()Lorg/glassfish/grizzly/Buffer;
astore 1
start local 1 1: aload 1
iconst_0
invokeinterface org.glassfish.grizzly.Buffer.allowBufferDispose:(Z)V
2: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/glassfish/grizzly/compression/zip/GZipEncoder;
1 3 1 headerToWrite Lorg/glassfish/grizzly/Buffer;
private org.glassfish.grizzly.Buffer encodeBuffer(org.glassfish.grizzly.Buffer, org.glassfish.grizzly.compression.zip.GZipEncoder$GZipOutputState, org.glassfish.grizzly.memory.MemoryManager);
descriptor: (Lorg/glassfish/grizzly/Buffer;Lorg/glassfish/grizzly/compression/zip/GZipEncoder$GZipOutputState;Lorg/glassfish/grizzly/memory/MemoryManager;)Lorg/glassfish/grizzly/Buffer;
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=18, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
getfield org.glassfish.grizzly.compression.zip.GZipEncoder$GZipOutputState.crc32:Ljava/util/zip/CRC32;
astore 4
start local 4 1: aload 2
getfield org.glassfish.grizzly.compression.zip.GZipEncoder$GZipOutputState.deflater:Ljava/util/zip/Deflater;
astore 5
start local 5 2: aload 5
invokevirtual java.util.zip.Deflater.finished:()Z
ifeq 4
3: new java.lang.IllegalStateException
dup
ldc "write beyond end of stream"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals: java.util.zip.CRC32 java.util.zip.Deflater
StackMap stack:
aload 0
getfield org.glassfish.grizzly.compression.zip.GZipEncoder.bufferSize:I
istore 6
start local 6 5: aconst_null
astore 7
start local 7 6: aload 1
invokeinterface org.glassfish.grizzly.Buffer.toByteBufferArray:()Lorg/glassfish/grizzly/memory/ByteBufferArray;
astore 8
start local 8 7: aload 8
invokevirtual org.glassfish.grizzly.memory.ByteBufferArray.getArray:()[Ljava/lang/Object;
checkcast java.nio.ByteBuffer[]
astore 9
start local 9 8: aload 8
invokevirtual org.glassfish.grizzly.memory.ByteBufferArray.size:()I
istore 10
start local 10 9: iconst_0
istore 11
start local 11 10: goto 34
11: StackMap locals: org.glassfish.grizzly.compression.zip.GZipEncoder org.glassfish.grizzly.Buffer org.glassfish.grizzly.compression.zip.GZipEncoder$GZipOutputState org.glassfish.grizzly.memory.MemoryManager java.util.zip.CRC32 java.util.zip.Deflater int org.glassfish.grizzly.Buffer org.glassfish.grizzly.memory.ByteBufferArray java.nio.ByteBuffer[] int int
StackMap stack:
aload 9
iload 11
aaload
astore 12
start local 12 12: aload 12
invokevirtual java.nio.ByteBuffer.remaining:()I
istore 13
start local 13 13: iload 13
ifle 33
14: aload 12
invokevirtual java.nio.ByteBuffer.hasArray:()Z
ifeq 18
15: aload 12
invokevirtual java.nio.ByteBuffer.array:()[B
astore 14
start local 14 16: aload 12
invokevirtual java.nio.ByteBuffer.arrayOffset:()I
aload 12
invokevirtual java.nio.ByteBuffer.position:()I
iadd
istore 15
start local 15 17: goto 22
end local 15 end local 14 18: StackMap locals: java.nio.ByteBuffer int
StackMap stack:
iload 13
newarray 8
astore 14
start local 14 19: iconst_0
istore 15
start local 15 20: aload 12
aload 14
invokevirtual java.nio.ByteBuffer.get:([B)Ljava/nio/ByteBuffer;
pop
21: aload 12
aload 12
invokevirtual java.nio.ByteBuffer.position:()I
iload 13
isub
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/Buffer;
pop
22: StackMap locals: byte[] int
StackMap stack:
iconst_0
istore 16
start local 16 23: goto 31
24: StackMap locals: int
StackMap stack:
aload 5
aload 14
iload 15
iload 16
iadd
iload 6
iload 13
iload 16
isub
invokestatic java.lang.Math.min:(II)I
invokevirtual java.util.zip.Deflater.setInput:([BII)V
25: goto 29
26: StackMap locals:
StackMap stack:
aload 0
aload 5
aload 3
invokevirtual org.glassfish.grizzly.compression.zip.GZipEncoder.deflate:(Ljava/util/zip/Deflater;Lorg/glassfish/grizzly/memory/MemoryManager;)Lorg/glassfish/grizzly/Buffer;
astore 17
start local 17 27: aload 17
ifnull 29
28: aload 3
aload 7
aload 17
invokestatic org.glassfish.grizzly.memory.Buffers.appendBuffers:(Lorg/glassfish/grizzly/memory/MemoryManager;Lorg/glassfish/grizzly/Buffer;Lorg/glassfish/grizzly/Buffer;)Lorg/glassfish/grizzly/Buffer;
astore 7
end local 17 29: StackMap locals:
StackMap stack:
aload 5
invokevirtual java.util.zip.Deflater.needsInput:()Z
ifeq 26
30: iload 16
iload 6
iadd
istore 16
StackMap locals:
StackMap stack:
31: iload 16
iload 13
if_icmplt 24
end local 16 32: aload 4
aload 14
iload 15
iload 13
invokevirtual java.util.zip.CRC32.update:([BII)V
end local 15 end local 14 end local 13 end local 12 33: StackMap locals: org.glassfish.grizzly.compression.zip.GZipEncoder org.glassfish.grizzly.Buffer org.glassfish.grizzly.compression.zip.GZipEncoder$GZipOutputState org.glassfish.grizzly.memory.MemoryManager java.util.zip.CRC32 java.util.zip.Deflater int org.glassfish.grizzly.Buffer org.glassfish.grizzly.memory.ByteBufferArray java.nio.ByteBuffer[] int int
StackMap stack:
iinc 11 1
StackMap locals:
StackMap stack:
34: iload 11
iload 10
if_icmplt 11
end local 11 35: aload 8
invokevirtual org.glassfish.grizzly.memory.ByteBufferArray.restore:()V
36: aload 8
invokevirtual org.glassfish.grizzly.memory.ByteBufferArray.recycle:()V
37: aload 1
aload 1
invokeinterface org.glassfish.grizzly.Buffer.limit:()I
invokeinterface org.glassfish.grizzly.Buffer.position:(I)Lorg/glassfish/grizzly/Buffer;
pop
38: aload 7
areturn
end local 10 end local 9 end local 8 end local 7 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 39 0 this Lorg/glassfish/grizzly/compression/zip/GZipEncoder;
0 39 1 buffer Lorg/glassfish/grizzly/Buffer;
0 39 2 state Lorg/glassfish/grizzly/compression/zip/GZipEncoder$GZipOutputState;
0 39 3 memoryManager Lorg/glassfish/grizzly/memory/MemoryManager;
1 39 4 crc32 Ljava/util/zip/CRC32;
2 39 5 deflater Ljava/util/zip/Deflater;
5 39 6 stride I
6 39 7 resultBuffer Lorg/glassfish/grizzly/Buffer;
7 39 8 byteBufferArray Lorg/glassfish/grizzly/memory/ByteBufferArray;
8 39 9 buffers [Ljava/nio/ByteBuffer;
9 39 10 size I
10 35 11 i I
12 33 12 byteBuffer Ljava/nio/ByteBuffer;
13 33 13 len I
16 18 14 buf [B
19 33 14 buf [B
17 18 15 off I
20 33 15 off I
23 32 16 j I
27 29 17 deflated Lorg/glassfish/grizzly/Buffer;
MethodParameters:
Name Flags
buffer
state
memoryManager
protected org.glassfish.grizzly.Buffer deflate(java.util.zip.Deflater, org.glassfish.grizzly.memory.MemoryManager);
descriptor: (Ljava/util/zip/Deflater;Lorg/glassfish/grizzly/memory/MemoryManager;)Lorg/glassfish/grizzly/Buffer;
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 2
aload 0
getfield org.glassfish.grizzly.compression.zip.GZipEncoder.bufferSize:I
invokeinterface org.glassfish.grizzly.memory.MemoryManager.allocate:(I)Lorg/glassfish/grizzly/Buffer;
astore 3
start local 3 1: aload 3
invokeinterface org.glassfish.grizzly.Buffer.toByteBuffer:()Ljava/nio/ByteBuffer;
astore 4
start local 4 2: aload 4
invokevirtual java.nio.ByteBuffer.array:()[B
astore 5
start local 5 3: aload 4
invokevirtual java.nio.ByteBuffer.arrayOffset:()I
aload 4
invokevirtual java.nio.ByteBuffer.position:()I
iadd
istore 6
start local 6 4: aload 1
aload 5
iload 6
aload 0
getfield org.glassfish.grizzly.compression.zip.GZipEncoder.bufferSize:I
invokevirtual java.util.zip.Deflater.deflate:([BII)I
istore 7
start local 7 5: iload 7
ifgt 8
6: aload 3
invokeinterface org.glassfish.grizzly.Buffer.dispose:()V
7: aconst_null
areturn
8: StackMap locals: org.glassfish.grizzly.compression.zip.GZipEncoder java.util.zip.Deflater org.glassfish.grizzly.memory.MemoryManager org.glassfish.grizzly.Buffer java.nio.ByteBuffer byte[] int int
StackMap stack:
aload 3
iload 7
invokeinterface org.glassfish.grizzly.Buffer.position:(I)Lorg/glassfish/grizzly/Buffer;
pop
9: aload 3
invokeinterface org.glassfish.grizzly.Buffer.trim:()V
10: aload 3
areturn
end local 7 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/glassfish/grizzly/compression/zip/GZipEncoder;
0 11 1 deflater Ljava/util/zip/Deflater;
0 11 2 memoryManager Lorg/glassfish/grizzly/memory/MemoryManager;
1 11 3 buffer Lorg/glassfish/grizzly/Buffer;
2 11 4 byteBuffer Ljava/nio/ByteBuffer;
3 11 5 array [B
4 11 6 offset I
5 11 7 len I
MethodParameters:
Name Flags
deflater
memoryManager
private static void putUInt(org.glassfish.grizzly.Buffer, int);
descriptor: (Lorg/glassfish/grizzly/Buffer;I)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
ldc 65535
iand
invokestatic org.glassfish.grizzly.compression.zip.GZipEncoder.putUShort:(Lorg/glassfish/grizzly/Buffer;I)V
1: aload 0
iload 1
bipush 16
ishr
ldc 65535
iand
invokestatic org.glassfish.grizzly.compression.zip.GZipEncoder.putUShort:(Lorg/glassfish/grizzly/Buffer;I)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 buffer Lorg/glassfish/grizzly/Buffer;
0 3 1 value I
MethodParameters:
Name Flags
buffer
value
private static void putUShort(org.glassfish.grizzly.Buffer, int);
descriptor: (Lorg/glassfish/grizzly/Buffer;I)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
sipush 255
iand
i2b
invokeinterface org.glassfish.grizzly.Buffer.put:(B)Lorg/glassfish/grizzly/Buffer;
pop
1: aload 0
iload 1
bipush 8
ishr
sipush 255
iand
i2b
invokeinterface org.glassfish.grizzly.Buffer.put:(B)Lorg/glassfish/grizzly/Buffer;
pop
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 buffer Lorg/glassfish/grizzly/Buffer;
0 3 1 value I
MethodParameters:
Name Flags
buffer
value
protected org.glassfish.grizzly.AbstractTransformer$LastResultAwareState createStateObject();
descriptor: ()Lorg/glassfish/grizzly/AbstractTransformer$LastResultAwareState;
flags: (0x1044) ACC_PROTECTED, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual org.glassfish.grizzly.compression.zip.GZipEncoder.createStateObject:()Lorg/glassfish/grizzly/compression/zip/GZipEncoder$GZipOutputState;
areturn
LocalVariableTable:
Start End Slot Name Signature
public boolean hasInputRemaining(org.glassfish.grizzly.attributes.AttributeStorage, java.lang.Object);
descriptor: (Lorg/glassfish/grizzly/attributes/AttributeStorage;Ljava/lang/Object;)Z
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
0: aload 0
aload 1
aload 2
checkcast org.glassfish.grizzly.Buffer
invokevirtual org.glassfish.grizzly.compression.zip.GZipEncoder.hasInputRemaining:(Lorg/glassfish/grizzly/attributes/AttributeStorage;Lorg/glassfish/grizzly/Buffer;)Z
ireturn
LocalVariableTable:
Start End Slot Name Signature
protected org.glassfish.grizzly.TransformationResult transformImpl(org.glassfish.grizzly.attributes.AttributeStorage, java.lang.Object);
descriptor: (Lorg/glassfish/grizzly/attributes/AttributeStorage;Ljava/lang/Object;)Lorg/glassfish/grizzly/TransformationResult;
flags: (0x1044) ACC_PROTECTED, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
0: aload 0
aload 1
aload 2
checkcast org.glassfish.grizzly.Buffer
invokevirtual org.glassfish.grizzly.compression.zip.GZipEncoder.transformImpl:(Lorg/glassfish/grizzly/attributes/AttributeStorage;Lorg/glassfish/grizzly/Buffer;)Lorg/glassfish/grizzly/TransformationResult;
areturn
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws org.glassfish.grizzly.TransformationException
}
Signature: Lorg/glassfish/grizzly/AbstractTransformer<Lorg/glassfish/grizzly/Buffer;Lorg/glassfish/grizzly/Buffer;>;
SourceFile: "GZipEncoder.java"
NestMembers:
org.glassfish.grizzly.compression.zip.GZipEncoder$GZipOutputState
InnerClasses:
public LastResultAwareState = org.glassfish.grizzly.AbstractTransformer$LastResultAwareState of org.glassfish.grizzly.AbstractTransformer
protected final GZipOutputState = org.glassfish.grizzly.compression.zip.GZipEncoder$GZipOutputState of org.glassfish.grizzly.compression.zip.GZipEncoder