public class sun.jvmstat.perfdata.monitor.protocol.file.PerfDataBuffer extends sun.jvmstat.perfdata.monitor.AbstractPerfDataBuffer
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.jvmstat.perfdata.monitor.protocol.file.PerfDataBuffer
super_class: sun.jvmstat.perfdata.monitor.AbstractPerfDataBuffer
{
public void <init>(sun.jvmstat.monitor.VmIdentifier);
descriptor: (Lsun/jvmstat/monitor/VmIdentifier;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=6, args_size=2
start local 0 // sun.jvmstat.perfdata.monitor.protocol.file.PerfDataBuffer this
start local 1 // sun.jvmstat.monitor.VmIdentifier vmid
0: .line 55
aload 0 /* this */
invokespecial sun.jvmstat.perfdata.monitor.AbstractPerfDataBuffer.<init>:()V
1: .line 56
new java.io.File
dup
aload 1 /* vmid */
invokevirtual sun.jvmstat.monitor.VmIdentifier.getURI:()Ljava/net/URI;
invokespecial java.io.File.<init>:(Ljava/net/URI;)V
astore 2 /* f */
start local 2 // java.io.File f
2: .line 57
aload 1 /* vmid */
invokevirtual sun.jvmstat.monitor.VmIdentifier.getMode:()Ljava/lang/String;
astore 3 /* mode */
start local 3 // java.lang.String mode
3: .line 60
new java.io.RandomAccessFile
dup
aload 2 /* f */
aload 3 /* mode */
invokespecial java.io.RandomAccessFile.<init>:(Ljava/io/File;Ljava/lang/String;)V
invokevirtual java.io.RandomAccessFile.getChannel:()Ljava/nio/channels/FileChannel;
astore 4 /* fc */
start local 4 // java.nio.channels.FileChannel fc
4: .line 61
aconst_null
astore 5 /* bb */
start local 5 // java.nio.ByteBuffer bb
5: .line 63
aload 3 /* mode */
ldc "r"
invokevirtual java.lang.String.compareTo:(Ljava/lang/String;)I
ifne 8
6: .line 64
aload 4 /* fc */
getstatic java.nio.channels.FileChannel$MapMode.READ_ONLY:Ljava/nio/channels/FileChannel$MapMode;
lconst_0
aload 4 /* fc */
invokevirtual java.nio.channels.FileChannel.size:()J
l2i
i2l
invokevirtual java.nio.channels.FileChannel.map:(Ljava/nio/channels/FileChannel$MapMode;JJ)Ljava/nio/MappedByteBuffer;
astore 5 /* bb */
7: .line 65
goto 12
StackMap locals: sun.jvmstat.perfdata.monitor.protocol.file.PerfDataBuffer sun.jvmstat.monitor.VmIdentifier java.io.File java.lang.String java.nio.channels.FileChannel java.nio.ByteBuffer
StackMap stack:
8: aload 3 /* mode */
ldc "rw"
invokevirtual java.lang.String.compareTo:(Ljava/lang/String;)I
ifne 11
9: .line 66
aload 4 /* fc */
getstatic java.nio.channels.FileChannel$MapMode.READ_WRITE:Ljava/nio/channels/FileChannel$MapMode;
lconst_0
aload 4 /* fc */
invokevirtual java.nio.channels.FileChannel.size:()J
l2i
i2l
invokevirtual java.nio.channels.FileChannel.map:(Ljava/nio/channels/FileChannel$MapMode;JJ)Ljava/nio/MappedByteBuffer;
astore 5 /* bb */
10: .line 67
goto 12
11: .line 68
StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Invalid mode: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3 /* mode */
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
12: .line 71
StackMap locals:
StackMap stack:
aload 4 /* fc */
invokevirtual java.nio.channels.FileChannel.close:()V
13: .line 73
aload 0 /* this */
aload 5 /* bb */
iconst_0
invokevirtual sun.jvmstat.perfdata.monitor.protocol.file.PerfDataBuffer.createPerfDataBuffer:(Ljava/nio/ByteBuffer;I)V
end local 5 // java.nio.ByteBuffer bb
end local 4 // java.nio.channels.FileChannel fc
14: .line 74
goto 19
StackMap locals: sun.jvmstat.perfdata.monitor.protocol.file.PerfDataBuffer sun.jvmstat.monitor.VmIdentifier java.io.File java.lang.String
StackMap stack: java.io.FileNotFoundException
15: pop
16: .line 75
new sun.jvmstat.monitor.MonitorException
dup
new java.lang.StringBuilder
dup
ldc "Could not find "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1 /* vmid */
invokevirtual sun.jvmstat.monitor.VmIdentifier.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial sun.jvmstat.monitor.MonitorException.<init>:(Ljava/lang/String;)V
athrow
17: .line 76
StackMap locals:
StackMap stack: java.io.IOException
pop
18: .line 77
new sun.jvmstat.monitor.MonitorException
dup
new java.lang.StringBuilder
dup
ldc "Could not read "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1 /* vmid */
invokevirtual sun.jvmstat.monitor.VmIdentifier.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial sun.jvmstat.monitor.MonitorException.<init>:(Ljava/lang/String;)V
athrow
19: .line 79
StackMap locals:
StackMap stack:
return
end local 3 // java.lang.String mode
end local 2 // java.io.File f
end local 1 // sun.jvmstat.monitor.VmIdentifier vmid
end local 0 // sun.jvmstat.perfdata.monitor.protocol.file.PerfDataBuffer this
LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lsun/jvmstat/perfdata/monitor/protocol/file/PerfDataBuffer;
0 20 1 vmid Lsun/jvmstat/monitor/VmIdentifier;
2 20 2 f Ljava/io/File;
3 20 3 mode Ljava/lang/String;
4 14 4 fc Ljava/nio/channels/FileChannel;
5 14 5 bb Ljava/nio/ByteBuffer;
Exception table:
from to target type
3 14 15 Class java.io.FileNotFoundException
3 14 17 Class java.io.IOException
Exceptions:
throws sun.jvmstat.monitor.MonitorException
MethodParameters:
Name Flags
vmid
}
SourceFile: "PerfDataBuffer.java"
InnerClasses:
public MapMode = java.nio.channels.FileChannel$MapMode of java.nio.channels.FileChannel