public abstract class com.sun.tools.hat.internal.parser.Reader
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: com.sun.tools.hat.internal.parser.Reader
super_class: java.lang.Object
{
protected com.sun.tools.hat.internal.parser.PositionDataInputStream in;
descriptor: Lcom/sun/tools/hat/internal/parser/PositionDataInputStream;
flags: (0x0004) ACC_PROTECTED
protected void <init>(com.sun.tools.hat.internal.parser.PositionDataInputStream);
descriptor: (Lcom/sun/tools/hat/internal/parser/PositionDataInputStream;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield com.sun.tools.hat.internal.parser.Reader.in:Lcom/sun/tools/hat/internal/parser/PositionDataInputStream;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/tools/hat/internal/parser/Reader;
0 3 1 in Lcom/sun/tools/hat/internal/parser/PositionDataInputStream;
MethodParameters:
Name Flags
in
public abstract com.sun.tools.hat.internal.model.Snapshot read();
descriptor: ()Lcom/sun/tools/hat/internal/model/Snapshot;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
Exceptions:
throws java.io.IOException
public static com.sun.tools.hat.internal.model.Snapshot readFile(java.lang.String, boolean, int);
descriptor: (Ljava/lang/String;ZI)Lcom/sun/tools/hat/internal/model/Snapshot;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=7, locals=10, args_size=3
start local 0 start local 1 start local 2 0: iconst_1
istore 3
start local 3 1: aload 0
bipush 35
invokevirtual java.lang.String.lastIndexOf:(I)I
istore 4
start local 4 2: iload 4
iconst_m1
if_icmple 15
3: aload 0
iload 4
iconst_1
iadd
aload 0
invokevirtual java.lang.String.length:()I
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 5
start local 5 4: aload 5
bipush 10
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;I)I
istore 3
5: goto 14
StackMap locals: java.lang.String int int int int java.lang.String
StackMap stack: java.lang.NumberFormatException
6: pop
7: new java.lang.StringBuilder
dup
ldc "In file name \""
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
8: ldc "\", a dump number was "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
9: ldc "expected after the :, but \""
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
10: aload 5
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "\" was found instead."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
11: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 6
start local 6 12: getstatic java.lang.System.err:Ljava/io/PrintStream;
aload 6
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
13: new java.io.IOException
dup
aload 6
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
end local 6 14: StackMap locals:
StackMap stack:
aload 0
iconst_0
iload 4
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 0
end local 5 15: StackMap locals:
StackMap stack:
new com.sun.tools.hat.internal.parser.PositionDataInputStream
dup
16: new java.io.BufferedInputStream
dup
new java.io.FileInputStream
dup
aload 0
invokespecial java.io.FileInputStream.<init>:(Ljava/lang/String;)V
invokespecial java.io.BufferedInputStream.<init>:(Ljava/io/InputStream;)V
17: invokespecial com.sun.tools.hat.internal.parser.PositionDataInputStream.<init>:(Ljava/io/InputStream;)V
astore 5
start local 5 18: aload 5
invokevirtual com.sun.tools.hat.internal.parser.PositionDataInputStream.readInt:()I
istore 6
start local 6 19: iload 6
ldc 1245795905
if_icmpne 27
20: new com.sun.tools.hat.internal.parser.HprofReader
dup
aload 0
aload 5
iload 3
21: iload 1
iload 2
22: invokespecial com.sun.tools.hat.internal.parser.HprofReader.<init>:(Ljava/lang/String;Lcom/sun/tools/hat/internal/parser/PositionDataInputStream;IZI)V
23: astore 7
start local 7 24: aload 7
invokevirtual com.sun.tools.hat.internal.parser.Reader.read:()Lcom/sun/tools/hat/internal/model/Snapshot;
astore 9
25: aload 5
invokevirtual com.sun.tools.hat.internal.parser.PositionDataInputStream.close:()V
26: aload 9
areturn
end local 7 27: StackMap locals: com.sun.tools.hat.internal.parser.PositionDataInputStream int
StackMap stack:
new java.io.IOException
dup
new java.lang.StringBuilder
dup
ldc "Unrecognized magic number: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 6
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
end local 6 28: StackMap locals: java.lang.String int int int int com.sun.tools.hat.internal.parser.PositionDataInputStream
StackMap stack: java.lang.Throwable
astore 8
29: aload 5
invokevirtual com.sun.tools.hat.internal.parser.PositionDataInputStream.close:()V
30: aload 8
athrow
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 31 0 heapFile Ljava/lang/String;
0 31 1 callStack Z
0 31 2 debugLevel I
1 31 3 dumpNumber I
2 31 4 pos I
4 15 5 num Ljava/lang/String;
12 14 6 msg Ljava/lang/String;
18 31 5 in Lcom/sun/tools/hat/internal/parser/PositionDataInputStream;
19 28 6 i I
24 27 7 r Lcom/sun/tools/hat/internal/parser/Reader;
Exception table:
from to target type
4 5 6 Class java.lang.NumberFormatException
18 25 28 any
27 28 28 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
heapFile
callStack
debugLevel
}
SourceFile: "Reader.java"