public class java.util.jar.JarOutputStream extends java.util.zip.ZipOutputStream
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: java.util.jar.JarOutputStream
super_class: java.util.zip.ZipOutputStream
{
private static final int JAR_MAGIC;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 51966
private boolean firstEntry;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
public void <init>(java.io.OutputStream, java.util.jar.Manifest);
descriptor: (Ljava/io/OutputStream;Ljava/util/jar/Manifest;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokespecial java.util.zip.ZipOutputStream.<init>:(Ljava/io/OutputStream;)V
1: aload 0
iconst_1
putfield java.util.jar.JarOutputStream.firstEntry:Z
2: aload 2
ifnonnull 4
3: new java.lang.NullPointerException
dup
ldc "man"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals: java.util.jar.JarOutputStream java.io.OutputStream java.util.jar.Manifest
StackMap stack:
new java.util.zip.ZipEntry
dup
ldc "META-INF/MANIFEST.MF"
invokespecial java.util.zip.ZipEntry.<init>:(Ljava/lang/String;)V
astore 3
start local 3 5: aload 0
aload 3
invokevirtual java.util.jar.JarOutputStream.putNextEntry:(Ljava/util/zip/ZipEntry;)V
6: aload 2
new java.io.BufferedOutputStream
dup
aload 0
invokespecial java.io.BufferedOutputStream.<init>:(Ljava/io/OutputStream;)V
invokevirtual java.util.jar.Manifest.write:(Ljava/io/OutputStream;)V
7: aload 0
invokevirtual java.util.jar.JarOutputStream.closeEntry:()V
8: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljava/util/jar/JarOutputStream;
0 9 1 out Ljava/io/OutputStream;
0 9 2 man Ljava/util/jar/Manifest;
5 9 3 e Ljava/util/zip/ZipEntry;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
out
man
public void <init>(java.io.OutputStream);
descriptor: (Ljava/io/OutputStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial java.util.zip.ZipOutputStream.<init>:(Ljava/io/OutputStream;)V
1: aload 0
iconst_1
putfield java.util.jar.JarOutputStream.firstEntry:Z
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljava/util/jar/JarOutputStream;
0 3 1 out Ljava/io/OutputStream;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
out
public void putNextEntry(java.util.zip.ZipEntry);
descriptor: (Ljava/util/zip/ZipEntry;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield java.util.jar.JarOutputStream.firstEntry:Z
ifeq 13
1: aload 1
invokevirtual java.util.zip.ZipEntry.getExtra:()[B
astore 2
start local 2 2: aload 2
ifnull 3
aload 2
invokestatic java.util.jar.JarOutputStream.hasMagic:([B)Z
ifne 12
3: StackMap locals: byte[]
StackMap stack:
aload 2
ifnonnull 6
4: iconst_4
newarray 8
astore 2
5: goto 9
6: StackMap locals:
StackMap stack:
aload 2
arraylength
iconst_4
iadd
newarray 8
astore 3
start local 3 7: aload 2
iconst_0
aload 3
iconst_4
aload 2
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
8: aload 3
astore 2
end local 3 9: StackMap locals:
StackMap stack:
aload 2
iconst_0
ldc 51966
invokestatic java.util.jar.JarOutputStream.set16:([BII)V
10: aload 2
iconst_2
iconst_0
invokestatic java.util.jar.JarOutputStream.set16:([BII)V
11: aload 1
aload 2
invokevirtual java.util.zip.ZipEntry.setExtra:([B)V
12: StackMap locals:
StackMap stack:
aload 0
iconst_0
putfield java.util.jar.JarOutputStream.firstEntry:Z
end local 2 13: StackMap locals:
StackMap stack:
aload 0
aload 1
invokespecial java.util.zip.ZipOutputStream.putNextEntry:(Ljava/util/zip/ZipEntry;)V
14: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Ljava/util/jar/JarOutputStream;
0 15 1 ze Ljava/util/zip/ZipEntry;
2 13 2 edata [B
7 9 3 tmp [B
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
ze
private static boolean hasMagic(byte[]);
descriptor: ([B)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: goto 5
2: StackMap locals: int
StackMap stack:
aload 0
iload 1
invokestatic java.util.jar.JarOutputStream.get16:([BI)I
ldc 51966
if_icmpne 4
3: iconst_1
ireturn
4: StackMap locals:
StackMap stack:
iload 1
aload 0
iload 1
iconst_2
iadd
invokestatic java.util.jar.JarOutputStream.get16:([BI)I
iconst_4
iadd
iadd
istore 1
5: StackMap locals:
StackMap stack:
iload 1
aload 0
arraylength
if_icmplt 2
end local 1 6: goto 8
StackMap locals: byte[]
StackMap stack: java.lang.ArrayIndexOutOfBoundsException
7: pop
8: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 edata [B
1 6 1 i I
Exception table:
from to target type
0 3 7 Class java.lang.ArrayIndexOutOfBoundsException
4 6 7 Class java.lang.ArrayIndexOutOfBoundsException
MethodParameters:
Name Flags
edata
private static int get16(byte[], int);
descriptor: ([BI)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
baload
sipush 255
iand
aload 0
iload 1
iconst_1
iadd
baload
sipush 255
iand
bipush 8
ishl
ior
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 b [B
0 1 1 off I
MethodParameters:
Name Flags
b
off
private static void set16(byte[], int, int);
descriptor: ([BII)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iload 1
iconst_0
iadd
iload 2
i2b
bastore
1: aload 0
iload 1
iconst_1
iadd
iload 2
bipush 8
ishr
i2b
bastore
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 b [B
0 3 1 off I
0 3 2 value I
MethodParameters:
Name Flags
b
off
value
}
SourceFile: "JarOutputStream.java"