final class jdk.tools.jaotc.binformat.macho.MachOContainer
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: jdk.tools.jaotc.binformat.macho.MachOContainer
super_class: java.lang.Object
{
private final java.io.File outputFile;
descriptor: Ljava/io/File;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private java.io.FileOutputStream outputStream;
descriptor: Ljava/io/FileOutputStream;
flags: (0x0002) ACC_PRIVATE
private long fileOffset;
descriptor: J
flags: (0x0002) ACC_PRIVATE
void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0000)
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.io.File
dup
aload 1
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
putfield jdk.tools.jaotc.binformat.macho.MachOContainer.outputFile:Ljava/io/File;
2: aload 0
getfield jdk.tools.jaotc.binformat.macho.MachOContainer.outputFile:Ljava/io/File;
invokevirtual java.io.File.exists:()Z
ifeq 4
3: aload 0
getfield jdk.tools.jaotc.binformat.macho.MachOContainer.outputFile:Ljava/io/File;
invokevirtual java.io.File.delete:()Z
pop
4: StackMap locals: jdk.tools.jaotc.binformat.macho.MachOContainer java.lang.String
StackMap stack:
aload 0
new java.io.FileOutputStream
dup
aload 0
getfield jdk.tools.jaotc.binformat.macho.MachOContainer.outputFile:Ljava/io/File;
invokespecial java.io.FileOutputStream.<init>:(Ljava/io/File;)V
putfield jdk.tools.jaotc.binformat.macho.MachOContainer.outputStream:Ljava/io/FileOutputStream;
5: goto 8
StackMap locals:
StackMap stack: java.lang.Exception
6: pop
7: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "MachOContainer: Can't create file "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
8: StackMap locals:
StackMap stack:
aload 0
lconst_0
putfield jdk.tools.jaotc.binformat.macho.MachOContainer.fileOffset:J
9: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljdk/tools/jaotc/binformat/macho/MachOContainer;
0 10 1 fileName Ljava/lang/String;
Exception table:
from to target type
4 5 6 Class java.lang.Exception
MethodParameters:
Name Flags
fileName
void close();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.tools.jaotc.binformat.macho.MachOContainer.outputStream:Ljava/io/FileOutputStream;
invokevirtual java.io.FileOutputStream.close:()V
1: goto 4
StackMap locals:
StackMap stack: java.lang.Exception
2: pop
3: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc "MachOContainer: close failed"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
4: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/tools/jaotc/binformat/macho/MachOContainer;
Exception table:
from to target type
0 1 2 Class java.lang.Exception
void writeBytes(byte[]);
descriptor: ([B)V
flags: (0x0000)
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.tools.jaotc.binformat.macho.MachOContainer.outputStream:Ljava/io/FileOutputStream;
aload 1
invokevirtual java.io.FileOutputStream.write:([B)V
1: goto 4
StackMap locals:
StackMap stack: java.lang.Exception
2: pop
3: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc "MachOContainer: writeBytes failed"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
4: StackMap locals:
StackMap stack:
aload 0
dup
getfield jdk.tools.jaotc.binformat.macho.MachOContainer.fileOffset:J
aload 1
arraylength
i2l
ladd
putfield jdk.tools.jaotc.binformat.macho.MachOContainer.fileOffset:J
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/tools/jaotc/binformat/macho/MachOContainer;
0 6 1 bytes [B
Exception table:
from to target type
0 1 2 Class java.lang.Exception
MethodParameters:
Name Flags
bytes
void writeBytes(byte[], int);
descriptor: ([BI)V
flags: (0x0000)
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: goto 3
1: StackMap locals:
StackMap stack:
aload 0
getfield jdk.tools.jaotc.binformat.macho.MachOContainer.outputStream:Ljava/io/FileOutputStream;
iconst_0
invokevirtual java.io.FileOutputStream.write:(I)V
2: aload 0
dup
getfield jdk.tools.jaotc.binformat.macho.MachOContainer.fileOffset:J
lconst_1
ladd
putfield jdk.tools.jaotc.binformat.macho.MachOContainer.fileOffset:J
3: StackMap locals:
StackMap stack:
aload 0
getfield jdk.tools.jaotc.binformat.macho.MachOContainer.fileOffset:J
iload 2
iconst_1
isub
i2l
land
lconst_0
lcmp
ifne 1
4: aload 0
getfield jdk.tools.jaotc.binformat.macho.MachOContainer.outputStream:Ljava/io/FileOutputStream;
aload 1
invokevirtual java.io.FileOutputStream.write:([B)V
5: goto 8
StackMap locals:
StackMap stack: java.lang.Exception
6: pop
7: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc "MachOContainer: writeBytes failed"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
8: StackMap locals:
StackMap stack:
aload 0
dup
getfield jdk.tools.jaotc.binformat.macho.MachOContainer.fileOffset:J
aload 1
arraylength
i2l
ladd
putfield jdk.tools.jaotc.binformat.macho.MachOContainer.fileOffset:J
9: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljdk/tools/jaotc/binformat/macho/MachOContainer;
0 10 1 bytes [B
0 10 2 alignment I
Exception table:
from to target type
0 5 6 Class java.lang.Exception
MethodParameters:
Name Flags
bytes
alignment
}
SourceFile: "MachOContainer.java"