public final class sun.management.jdp.JdpPacketReader
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: sun.management.jdp.JdpPacketReader
super_class: java.lang.Object
{
private final java.io.DataInputStream pkt;
descriptor: Ljava/io/DataInputStream;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private java.util.Map<java.lang.String, java.lang.String> pmap;
descriptor: Ljava/util/Map;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
public void <init>(byte[]);
descriptor: ([B)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aconst_null
putfield sun.management.jdp.JdpPacketReader.pmap:Ljava/util/Map;
2: new java.io.ByteArrayInputStream
dup
aload 1
invokespecial java.io.ByteArrayInputStream.<init>:([B)V
astore 2
start local 2 3: aload 0
new java.io.DataInputStream
dup
aload 2
invokespecial java.io.DataInputStream.<init>:(Ljava/io/InputStream;)V
putfield sun.management.jdp.JdpPacketReader.pkt:Ljava/io/DataInputStream;
4: aload 0
getfield sun.management.jdp.JdpPacketReader.pkt:Ljava/io/DataInputStream;
invokevirtual java.io.DataInputStream.readInt:()I
istore 3
start local 3 5: iload 3
invokestatic sun.management.jdp.JdpGenericPacket.checkMagic:(I)V
end local 3 6: goto 9
StackMap locals: sun.management.jdp.JdpPacketReader byte[] java.io.ByteArrayInputStream
StackMap stack: java.io.IOException
7: pop
8: new sun.management.jdp.JdpException
dup
ldc "Invalid JDP packet received, bad magic"
invokespecial sun.management.jdp.JdpException.<init>:(Ljava/lang/String;)V
athrow
9: StackMap locals:
StackMap stack:
aload 0
getfield sun.management.jdp.JdpPacketReader.pkt:Ljava/io/DataInputStream;
invokevirtual java.io.DataInputStream.readShort:()S
istore 3
start local 3 10: iload 3
invokestatic sun.management.jdp.JdpGenericPacket.checkVersion:(S)V
end local 3 11: goto 14
StackMap locals:
StackMap stack: java.io.IOException
12: pop
13: new sun.management.jdp.JdpException
dup
ldc "Invalid JDP packet received, bad protocol version"
invokespecial sun.management.jdp.JdpException.<init>:(Ljava/lang/String;)V
athrow
14: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lsun/management/jdp/JdpPacketReader;
0 15 1 packet [B
3 15 2 bais Ljava/io/ByteArrayInputStream;
5 6 3 magic I
10 11 3 version S
Exception table:
from to target type
4 6 7 Class java.io.IOException
9 11 12 Class java.io.IOException
Exceptions:
throws sun.management.jdp.JdpException
MethodParameters:
Name Flags
packet
public java.lang.String getEntry();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: aload 0
getfield sun.management.jdp.JdpPacketReader.pkt:Ljava/io/DataInputStream;
invokevirtual java.io.DataInputStream.readShort:()S
istore 1
start local 1 1: iload 1
iconst_1
if_icmpge 3
iload 1
aload 0
getfield sun.management.jdp.JdpPacketReader.pkt:Ljava/io/DataInputStream;
invokevirtual java.io.DataInputStream.available:()I
if_icmple 3
2: new sun.management.jdp.JdpException
dup
ldc "Broken JDP packet. Invalid entry length field."
invokespecial sun.management.jdp.JdpException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: int
StackMap stack:
iload 1
newarray 8
astore 2
start local 2 4: aload 0
getfield sun.management.jdp.JdpPacketReader.pkt:Ljava/io/DataInputStream;
aload 2
invokevirtual java.io.DataInputStream.read:([B)I
iload 1
if_icmpeq 6
5: new sun.management.jdp.JdpException
dup
ldc "Broken JDP packet. Unable to read entry."
invokespecial sun.management.jdp.JdpException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals: byte[]
StackMap stack:
new java.lang.String
dup
aload 2
ldc "UTF-8"
invokespecial java.lang.String.<init>:([BLjava/lang/String;)V
7: areturn
end local 2 end local 1 8: StackMap locals: sun.management.jdp.JdpPacketReader
StackMap stack: java.io.EOFException
astore 1
start local 1 9: aload 1
athrow
end local 1 10: StackMap locals:
StackMap stack: java.io.UnsupportedEncodingException
pop
11: new sun.management.jdp.JdpException
dup
ldc "Broken JDP packet. Unable to decode entry."
invokespecial sun.management.jdp.JdpException.<init>:(Ljava/lang/String;)V
athrow
12: StackMap locals:
StackMap stack: java.io.IOException
pop
13: new sun.management.jdp.JdpException
dup
ldc "Broken JDP packet. Unable to read entry."
invokespecial sun.management.jdp.JdpException.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lsun/management/jdp/JdpPacketReader;
1 8 1 len S
4 8 2 b [B
9 10 1 e Ljava/io/EOFException;
Exception table:
from to target type
0 7 8 Class java.io.EOFException
0 7 10 Class java.io.UnsupportedEncodingException
0 7 12 Class java.io.IOException
Exceptions:
throws java.io.EOFException, sun.management.jdp.JdpException
public java.util.Map<java.lang.String, java.lang.String> getDiscoveryDataAsMap();
descriptor: ()Ljava/util/Map;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=1
start local 0 0: aload 0
getfield sun.management.jdp.JdpPacketReader.pmap:Ljava/util/Map;
ifnull 2
1: aload 0
getfield sun.management.jdp.JdpPacketReader.pmap:Ljava/util/Map;
areturn
2: StackMap locals:
StackMap stack:
aconst_null
astore 1
start local 1 3: aconst_null
astore 2
start local 2 4: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 3
start local 3 5: StackMap locals: java.lang.String java.lang.String java.util.Map
StackMap stack:
aload 0
invokevirtual sun.management.jdp.JdpPacketReader.getEntry:()Ljava/lang/String;
astore 1
6: aload 0
invokevirtual sun.management.jdp.JdpPacketReader.getEntry:()Ljava/lang/String;
astore 2
7: aload 3
aload 1
aload 2
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
8: goto 5
9: StackMap locals:
StackMap stack: java.io.EOFException
pop
10: aload 2
ifnonnull 12
11: new sun.management.jdp.JdpException
dup
new java.lang.StringBuilder
dup
ldc "Broken JDP packet. Key without value."
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;
invokespecial sun.management.jdp.JdpException.<init>:(Ljava/lang/String;)V
athrow
12: StackMap locals:
StackMap stack:
aload 0
aload 3
invokestatic java.util.Collections.unmodifiableMap:(Ljava/util/Map;)Ljava/util/Map;
putfield sun.management.jdp.JdpPacketReader.pmap:Ljava/util/Map;
13: aload 0
getfield sun.management.jdp.JdpPacketReader.pmap:Ljava/util/Map;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lsun/management/jdp/JdpPacketReader;
3 14 1 key Ljava/lang/String;
4 14 2 value Ljava/lang/String;
5 14 3 tmpMap Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
Exception table:
from to target type
5 9 9 Class java.io.EOFException
Exceptions:
throws sun.management.jdp.JdpException
Signature: ()Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
}
SourceFile: "JdpPacketReader.java"