public class sun.nio.ch.DatagramSocketAdaptor extends java.net.DatagramSocket
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.nio.ch.DatagramSocketAdaptor
super_class: java.net.DatagramSocket
{
private final sun.nio.ch.DatagramChannelImpl dc;
descriptor: Lsun/nio/ch/DatagramChannelImpl;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private volatile int timeout;
descriptor: I
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private static final java.net.DatagramSocketImpl dummyDatagramSocket;
descriptor: Ljava/net/DatagramSocketImpl;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc Lsun/nio/ch/DatagramSocketAdaptor;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic sun.nio.ch.DatagramSocketAdaptor.$assertionsDisabled:Z
3: new sun.nio.ch.DatagramSocketAdaptor$1
dup
invokespecial sun.nio.ch.DatagramSocketAdaptor$1.<init>:()V
4: putstatic sun.nio.ch.DatagramSocketAdaptor.dummyDatagramSocket:Ljava/net/DatagramSocketImpl;
5: return
LocalVariableTable:
Start End Slot Name Signature
private void <init>(sun.nio.ch.DatagramChannelImpl);
descriptor: (Lsun/nio/ch/DatagramChannelImpl;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getstatic sun.nio.ch.DatagramSocketAdaptor.dummyDatagramSocket:Ljava/net/DatagramSocketImpl;
invokespecial java.net.DatagramSocket.<init>:(Ljava/net/DatagramSocketImpl;)V
1: aload 0
aload 1
putfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/nio/ch/DatagramSocketAdaptor;
0 3 1 dc Lsun/nio/ch/DatagramChannelImpl;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
dc
public static java.net.DatagramSocket create(sun.nio.ch.DatagramChannelImpl);
descriptor: (Lsun/nio/ch/DatagramChannelImpl;)Ljava/net/DatagramSocket;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: new sun.nio.ch.DatagramSocketAdaptor
dup
aload 0
invokespecial sun.nio.ch.DatagramSocketAdaptor.<init>:(Lsun/nio/ch/DatagramChannelImpl;)V
1: areturn
2: StackMap locals:
StackMap stack: java.io.IOException
astore 1
start local 1 3: new java.lang.Error
dup
aload 1
invokespecial java.lang.Error.<init>:(Ljava/lang/Throwable;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 dc Lsun/nio/ch/DatagramChannelImpl;
3 4 1 x Ljava/io/IOException;
Exception table:
from to target type
0 1 2 Class java.io.IOException
MethodParameters:
Name Flags
dc
private void connectInternal(java.net.SocketAddress);
descriptor: (Ljava/net/SocketAddress;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: aload 1
invokestatic sun.nio.ch.Net.asInetSocketAddress:(Ljava/net/SocketAddress;)Ljava/net/InetSocketAddress;
astore 2
start local 2 1: aload 2
invokevirtual java.net.InetSocketAddress.getPort:()I
istore 3
start local 3 2: iload 3
iflt 3
iload 3
ldc 65535
if_icmple 4
3: StackMap locals: java.net.InetSocketAddress int
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "connect: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 3
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 1
ifnonnull 6
5: new java.lang.IllegalArgumentException
dup
ldc "connect: null address"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
aload 1
invokevirtual sun.nio.ch.DatagramChannelImpl.connect:(Ljava/net/SocketAddress;)Ljava/nio/channels/DatagramChannel;
pop
7: goto 11
StackMap locals:
StackMap stack: java.nio.channels.ClosedChannelException
8: pop
goto 11
9: StackMap locals:
StackMap stack: java.lang.Exception
astore 4
start local 4 10: aload 4
invokestatic sun.nio.ch.Net.translateToSocketException:(Ljava/lang/Exception;)V
end local 4 11: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lsun/nio/ch/DatagramSocketAdaptor;
0 12 1 remote Ljava/net/SocketAddress;
1 12 2 isa Ljava/net/InetSocketAddress;
2 12 3 port I
10 11 4 x Ljava/lang/Exception;
Exception table:
from to target type
6 7 8 Class java.nio.channels.ClosedChannelException
6 7 9 Class java.lang.Exception
Exceptions:
throws java.net.SocketException
MethodParameters:
Name Flags
remote
public void bind(java.net.SocketAddress);
descriptor: (Ljava/net/SocketAddress;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: new java.net.InetSocketAddress
dup
iconst_0
invokespecial java.net.InetSocketAddress.<init>:(I)V
astore 1
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
aload 1
invokevirtual sun.nio.ch.DatagramChannelImpl.bind:(Ljava/net/SocketAddress;)Ljava/nio/channels/DatagramChannel;
pop
3: goto 6
StackMap locals:
StackMap stack: java.lang.Exception
4: astore 2
start local 2 5: aload 2
invokestatic sun.nio.ch.Net.translateToSocketException:(Ljava/lang/Exception;)V
end local 2 6: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/nio/ch/DatagramSocketAdaptor;
0 7 1 local Ljava/net/SocketAddress;
5 6 2 x Ljava/lang/Exception;
Exception table:
from to target type
0 3 4 Class java.lang.Exception
Exceptions:
throws java.net.SocketException
MethodParameters:
Name Flags
local
public void connect(java.net.InetAddress, int);
descriptor: (Ljava/net/InetAddress;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
new java.net.InetSocketAddress
dup
aload 1
iload 2
invokespecial java.net.InetSocketAddress.<init>:(Ljava/net/InetAddress;I)V
invokevirtual sun.nio.ch.DatagramSocketAdaptor.connectInternal:(Ljava/net/SocketAddress;)V
1: goto 3
StackMap locals:
StackMap stack: java.net.SocketException
2: pop
3: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/nio/ch/DatagramSocketAdaptor;
0 4 1 address Ljava/net/InetAddress;
0 4 2 port I
Exception table:
from to target type
0 1 2 Class java.net.SocketException
MethodParameters:
Name Flags
address
port
public void connect(java.net.SocketAddress);
descriptor: (Ljava/net/SocketAddress;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ldc "Address can't be null"
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
1: aload 0
aload 1
invokevirtual sun.nio.ch.DatagramSocketAdaptor.connectInternal:(Ljava/net/SocketAddress;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/nio/ch/DatagramSocketAdaptor;
0 3 1 remote Ljava/net/SocketAddress;
Exceptions:
throws java.net.SocketException
MethodParameters:
Name Flags
remote
public void disconnect();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
invokevirtual sun.nio.ch.DatagramChannelImpl.disconnect:()Ljava/nio/channels/DatagramChannel;
pop
1: goto 4
StackMap locals:
StackMap stack: java.io.IOException
2: astore 1
start local 1 3: new java.lang.Error
dup
aload 1
invokespecial java.lang.Error.<init>:(Ljava/lang/Throwable;)V
athrow
end local 1 4: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/nio/ch/DatagramSocketAdaptor;
3 4 1 x Ljava/io/IOException;
Exception table:
from to target type
0 1 2 Class java.io.IOException
public boolean isBound();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
invokevirtual sun.nio.ch.DatagramChannelImpl.localAddress:()Ljava/net/InetSocketAddress;
ifnull 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/nio/ch/DatagramSocketAdaptor;
public boolean isConnected();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
invokevirtual sun.nio.ch.DatagramChannelImpl.remoteAddress:()Ljava/net/InetSocketAddress;
ifnull 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/nio/ch/DatagramSocketAdaptor;
public java.net.InetAddress getInetAddress();
descriptor: ()Ljava/net/InetAddress;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
invokevirtual sun.nio.ch.DatagramChannelImpl.remoteAddress:()Ljava/net/InetSocketAddress;
astore 1
start local 1 1: aload 1
ifnull 2
aload 1
invokevirtual java.net.InetSocketAddress.getAddress:()Ljava/net/InetAddress;
goto 3
StackMap locals: java.net.InetSocketAddress
StackMap stack:
2: aconst_null
StackMap locals:
StackMap stack: java.net.InetAddress
3: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/nio/ch/DatagramSocketAdaptor;
1 4 1 remote Ljava/net/InetSocketAddress;
public int getPort();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
invokevirtual sun.nio.ch.DatagramChannelImpl.remoteAddress:()Ljava/net/InetSocketAddress;
astore 1
start local 1 1: aload 1
ifnull 2
aload 1
invokevirtual java.net.InetSocketAddress.getPort:()I
goto 3
StackMap locals: java.net.InetSocketAddress
StackMap stack:
2: iconst_m1
StackMap locals:
StackMap stack: int
3: ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/nio/ch/DatagramSocketAdaptor;
1 4 1 remote Ljava/net/InetSocketAddress;
public void send(java.net.DatagramPacket);
descriptor: (Ljava/net/DatagramPacket;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=6, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
invokevirtual sun.nio.ch.DatagramChannelImpl.blockingLock:()Ljava/lang/Object;
dup
astore 2
monitorenter
1: aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
invokevirtual sun.nio.ch.DatagramChannelImpl.isBlocking:()Z
ifne 3
2: new java.nio.channels.IllegalBlockingModeException
dup
invokespecial java.nio.channels.IllegalBlockingModeException.<init>:()V
athrow
3: StackMap locals: java.lang.Object
StackMap stack:
aload 1
dup
astore 3
monitorenter
4: aload 1
invokevirtual java.net.DatagramPacket.getData:()[B
5: aload 1
invokevirtual java.net.DatagramPacket.getOffset:()I
6: aload 1
invokevirtual java.net.DatagramPacket.getLength:()I
7: invokestatic java.nio.ByteBuffer.wrap:([BII)Ljava/nio/ByteBuffer;
astore 4
start local 4 8: aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
invokevirtual sun.nio.ch.DatagramChannelImpl.isConnected:()Z
ifeq 17
9: aload 1
invokevirtual java.net.DatagramPacket.getAddress:()Ljava/net/InetAddress;
ifnonnull 15
10: aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
invokevirtual sun.nio.ch.DatagramChannelImpl.remoteAddress:()Ljava/net/InetSocketAddress;
astore 5
start local 5 11: aload 1
aload 5
invokevirtual java.net.InetSocketAddress.getPort:()I
invokevirtual java.net.DatagramPacket.setPort:(I)V
12: aload 1
aload 5
invokevirtual java.net.InetSocketAddress.getAddress:()Ljava/net/InetAddress;
invokevirtual java.net.DatagramPacket.setAddress:(Ljava/net/InetAddress;)V
13: aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
aload 4
invokevirtual sun.nio.ch.DatagramChannelImpl.write:(Ljava/nio/ByteBuffer;)I
pop
end local 5 14: goto 18
15: StackMap locals: java.net.DatagramPacket java.nio.ByteBuffer
StackMap stack:
aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
aload 4
aload 1
invokevirtual java.net.DatagramPacket.getSocketAddress:()Ljava/net/SocketAddress;
invokevirtual sun.nio.ch.DatagramChannelImpl.send:(Ljava/nio/ByteBuffer;Ljava/net/SocketAddress;)I
pop
16: goto 18
17: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
aload 4
aload 1
invokevirtual java.net.DatagramPacket.getSocketAddress:()Ljava/net/SocketAddress;
invokevirtual sun.nio.ch.DatagramChannelImpl.send:(Ljava/nio/ByteBuffer;Ljava/net/SocketAddress;)I
pop
end local 4 18: StackMap locals:
StackMap stack:
aload 3
monitorexit
19: goto 24
StackMap locals:
StackMap stack: java.lang.Throwable
20: aload 3
monitorexit
21: athrow
22: StackMap locals: sun.nio.ch.DatagramSocketAdaptor java.net.DatagramPacket java.lang.Object
StackMap stack: java.io.IOException
astore 3
start local 3 23: aload 3
invokestatic sun.nio.ch.Net.translateException:(Ljava/lang/Exception;)V
end local 3 24: StackMap locals:
StackMap stack:
aload 2
monitorexit
25: goto 28
StackMap locals:
StackMap stack: java.lang.Throwable
26: aload 2
monitorexit
27: athrow
28: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 29 0 this Lsun/nio/ch/DatagramSocketAdaptor;
0 29 1 p Ljava/net/DatagramPacket;
8 18 4 bb Ljava/nio/ByteBuffer;
11 14 5 isa Ljava/net/InetSocketAddress;
23 24 3 x Ljava/io/IOException;
Exception table:
from to target type
4 19 20 any
20 21 20 any
3 22 22 Class java.io.IOException
1 25 26 any
26 27 26 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
p
private java.net.SocketAddress receive(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)Ljava/net/SocketAddress;
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=6, args_size=2
start local 0 start local 1 0: getstatic sun.nio.ch.DatagramSocketAdaptor.$assertionsDisabled:Z
ifne 2
aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
invokevirtual sun.nio.ch.DatagramChannelImpl.blockingLock:()Ljava/lang/Object;
invokestatic java.lang.Thread.holdsLock:(Ljava/lang/Object;)Z
ifeq 1
aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
invokevirtual sun.nio.ch.DatagramChannelImpl.isBlocking:()Z
ifne 2
StackMap locals:
StackMap stack:
1: new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.timeout:I
i2l
lstore 2
start local 2 3: lload 2
lconst_0
lcmp
ifne 5
4: aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
aload 1
invokevirtual sun.nio.ch.DatagramChannelImpl.receive:(Ljava/nio/ByteBuffer;)Ljava/net/SocketAddress;
areturn
5: StackMap locals: long
StackMap stack:
aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
invokevirtual sun.nio.ch.DatagramChannelImpl.isOpen:()Z
ifne 7
6: new java.nio.channels.ClosedChannelException
dup
invokespecial java.nio.channels.ClosedChannelException.<init>:()V
athrow
7: StackMap locals:
StackMap stack:
invokestatic java.lang.System.currentTimeMillis:()J
lstore 4
start local 4 8: aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
lload 2
invokevirtual sun.nio.ch.DatagramChannelImpl.pollRead:(J)Z
ifeq 10
9: aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
aload 1
invokevirtual sun.nio.ch.DatagramChannelImpl.receive:(Ljava/nio/ByteBuffer;)Ljava/net/SocketAddress;
areturn
10: StackMap locals: long
StackMap stack:
lload 2
invokestatic java.lang.System.currentTimeMillis:()J
lload 4
lsub
lsub
lstore 2
11: lload 2
lconst_0
lcmp
ifgt 5
12: new java.net.SocketTimeoutException
dup
invokespecial java.net.SocketTimeoutException.<init>:()V
athrow
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lsun/nio/ch/DatagramSocketAdaptor;
0 13 1 bb Ljava/nio/ByteBuffer;
3 13 2 to J
8 13 4 st J
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
bb
public void receive(java.net.DatagramPacket);
descriptor: (Ljava/net/DatagramPacket;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=6, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
invokevirtual sun.nio.ch.DatagramChannelImpl.blockingLock:()Ljava/lang/Object;
dup
astore 2
monitorenter
1: aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
invokevirtual sun.nio.ch.DatagramChannelImpl.isBlocking:()Z
ifne 3
2: new java.nio.channels.IllegalBlockingModeException
dup
invokespecial java.nio.channels.IllegalBlockingModeException.<init>:()V
athrow
3: StackMap locals: java.lang.Object
StackMap stack:
aload 1
dup
astore 3
monitorenter
4: aload 1
invokevirtual java.net.DatagramPacket.getData:()[B
5: aload 1
invokevirtual java.net.DatagramPacket.getOffset:()I
6: aload 1
invokevirtual java.net.DatagramPacket.getLength:()I
7: invokestatic java.nio.ByteBuffer.wrap:([BII)Ljava/nio/ByteBuffer;
astore 4
start local 4 8: aload 0
aload 4
invokevirtual sun.nio.ch.DatagramSocketAdaptor.receive:(Ljava/nio/ByteBuffer;)Ljava/net/SocketAddress;
astore 5
start local 5 9: aload 1
aload 5
invokevirtual java.net.DatagramPacket.setSocketAddress:(Ljava/net/SocketAddress;)V
10: aload 1
aload 4
invokevirtual java.nio.ByteBuffer.position:()I
aload 1
invokevirtual java.net.DatagramPacket.getOffset:()I
isub
invokevirtual java.net.DatagramPacket.setLength:(I)V
end local 5 end local 4 11: aload 3
monitorexit
12: goto 17
StackMap locals: sun.nio.ch.DatagramSocketAdaptor java.net.DatagramPacket java.lang.Object java.net.DatagramPacket
StackMap stack: java.lang.Throwable
13: aload 3
monitorexit
14: athrow
15: StackMap locals: sun.nio.ch.DatagramSocketAdaptor java.net.DatagramPacket java.lang.Object
StackMap stack: java.io.IOException
astore 3
start local 3 16: aload 3
invokestatic sun.nio.ch.Net.translateException:(Ljava/lang/Exception;)V
end local 3 17: StackMap locals:
StackMap stack:
aload 2
monitorexit
18: goto 21
StackMap locals:
StackMap stack: java.lang.Throwable
19: aload 2
monitorexit
20: athrow
21: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Lsun/nio/ch/DatagramSocketAdaptor;
0 22 1 p Ljava/net/DatagramPacket;
8 11 4 bb Ljava/nio/ByteBuffer;
9 11 5 sender Ljava/net/SocketAddress;
16 17 3 x Ljava/io/IOException;
Exception table:
from to target type
4 12 13 any
13 14 13 any
3 15 15 Class java.io.IOException
1 18 19 any
19 20 19 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
p
public java.net.InetAddress getLocalAddress();
descriptor: ()Ljava/net/InetAddress;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: aload 0
invokevirtual sun.nio.ch.DatagramSocketAdaptor.isClosed:()Z
ifeq 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
invokevirtual sun.nio.ch.DatagramChannelImpl.localAddress:()Ljava/net/InetSocketAddress;
astore 1
start local 1 3: aload 1
ifnonnull 5
4: new java.net.InetSocketAddress
dup
iconst_0
invokespecial java.net.InetSocketAddress.<init>:(I)V
astore 1
5: StackMap locals: java.net.InetSocketAddress
StackMap stack:
aload 1
invokevirtual java.net.InetSocketAddress.getAddress:()Ljava/net/InetAddress;
astore 2
start local 2 6: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 3
start local 3 7: aload 3
ifnull 12
8: aload 3
aload 2
invokevirtual java.net.InetAddress.getHostAddress:()Ljava/lang/String;
iconst_m1
invokevirtual java.lang.SecurityManager.checkConnect:(Ljava/lang/String;I)V
9: goto 12
StackMap locals: sun.nio.ch.DatagramSocketAdaptor java.net.InetSocketAddress java.net.InetAddress java.lang.SecurityManager
StackMap stack: java.lang.SecurityException
10: pop
11: new java.net.InetSocketAddress
dup
iconst_0
invokespecial java.net.InetSocketAddress.<init>:(I)V
invokevirtual java.net.InetSocketAddress.getAddress:()Ljava/net/InetAddress;
areturn
12: StackMap locals:
StackMap stack:
aload 2
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lsun/nio/ch/DatagramSocketAdaptor;
3 13 1 local Ljava/net/InetSocketAddress;
6 13 2 result Ljava/net/InetAddress;
7 13 3 sm Ljava/lang/SecurityManager;
Exception table:
from to target type
8 9 10 Class java.lang.SecurityException
public int getLocalPort();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual sun.nio.ch.DatagramSocketAdaptor.isClosed:()Z
ifeq 2
1: iconst_m1
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
invokevirtual sun.nio.ch.DatagramChannelImpl.localAddress:()Ljava/net/InetSocketAddress;
astore 1
start local 1 3: aload 1
ifnull 7
4: aload 1
invokevirtual java.net.InetSocketAddress.getPort:()I
5: ireturn
end local 1 6: StackMap locals:
StackMap stack: java.lang.Exception
pop
7: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/nio/ch/DatagramSocketAdaptor;
3 6 1 local Ljava/net/InetSocketAddress;
Exception table:
from to target type
2 5 6 Class java.lang.Exception
public void setSoTimeout(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield sun.nio.ch.DatagramSocketAdaptor.timeout:I
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/nio/ch/DatagramSocketAdaptor;
0 2 1 timeout I
Exceptions:
throws java.net.SocketException
MethodParameters:
Name Flags
timeout
public int getSoTimeout();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.timeout:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/DatagramSocketAdaptor;
Exceptions:
throws java.net.SocketException
private void setBooleanOption(java.net.SocketOption<java.lang.Boolean>, );
descriptor: (Ljava/net/SocketOption;Z)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
aload 1
iload 2
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
invokevirtual sun.nio.ch.DatagramChannelImpl.setOption:(Ljava/net/SocketOption;Ljava/lang/Object;)Ljava/nio/channels/DatagramChannel;
pop
1: goto 4
StackMap locals:
StackMap stack: java.io.IOException
2: astore 3
start local 3 3: aload 3
invokestatic sun.nio.ch.Net.translateToSocketException:(Ljava/lang/Exception;)V
end local 3 4: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/nio/ch/DatagramSocketAdaptor;
0 5 1 name Ljava/net/SocketOption<Ljava/lang/Boolean;>;
0 5 2 value Z
3 4 3 x Ljava/io/IOException;
Exception table:
from to target type
0 1 2 Class java.io.IOException
Exceptions:
throws java.net.SocketException
Signature: (Ljava/net/SocketOption<Ljava/lang/Boolean;>;Z)V
MethodParameters:
Name Flags
name
value
private void setIntOption(java.net.SocketOption<java.lang.Integer>, );
descriptor: (Ljava/net/SocketOption;I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
aload 1
iload 2
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokevirtual sun.nio.ch.DatagramChannelImpl.setOption:(Ljava/net/SocketOption;Ljava/lang/Object;)Ljava/nio/channels/DatagramChannel;
pop
1: goto 4
StackMap locals:
StackMap stack: java.io.IOException
2: astore 3
start local 3 3: aload 3
invokestatic sun.nio.ch.Net.translateToSocketException:(Ljava/lang/Exception;)V
end local 3 4: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/nio/ch/DatagramSocketAdaptor;
0 5 1 name Ljava/net/SocketOption<Ljava/lang/Integer;>;
0 5 2 value I
3 4 3 x Ljava/io/IOException;
Exception table:
from to target type
0 1 2 Class java.io.IOException
Exceptions:
throws java.net.SocketException
Signature: (Ljava/net/SocketOption<Ljava/lang/Integer;>;I)V
MethodParameters:
Name Flags
name
value
private boolean getBooleanOption(java.net.SocketOption<java.lang.Boolean>);
descriptor: (Ljava/net/SocketOption;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
aload 1
invokevirtual sun.nio.ch.DatagramChannelImpl.getOption:(Ljava/net/SocketOption;)Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
1: ireturn
2: StackMap locals:
StackMap stack: java.io.IOException
astore 2
start local 2 3: aload 2
invokestatic sun.nio.ch.Net.translateToSocketException:(Ljava/lang/Exception;)V
4: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/nio/ch/DatagramSocketAdaptor;
0 5 1 name Ljava/net/SocketOption<Ljava/lang/Boolean;>;
3 5 2 x Ljava/io/IOException;
Exception table:
from to target type
0 1 2 Class java.io.IOException
Exceptions:
throws java.net.SocketException
Signature: (Ljava/net/SocketOption<Ljava/lang/Boolean;>;)Z
MethodParameters:
Name Flags
name
private int getIntOption(java.net.SocketOption<java.lang.Integer>);
descriptor: (Ljava/net/SocketOption;)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
aload 1
invokevirtual sun.nio.ch.DatagramChannelImpl.getOption:(Ljava/net/SocketOption;)Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
1: ireturn
2: StackMap locals:
StackMap stack: java.io.IOException
astore 2
start local 2 3: aload 2
invokestatic sun.nio.ch.Net.translateToSocketException:(Ljava/lang/Exception;)V
4: iconst_m1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/nio/ch/DatagramSocketAdaptor;
0 5 1 name Ljava/net/SocketOption<Ljava/lang/Integer;>;
3 5 2 x Ljava/io/IOException;
Exception table:
from to target type
0 1 2 Class java.io.IOException
Exceptions:
throws java.net.SocketException
Signature: (Ljava/net/SocketOption<Ljava/lang/Integer;>;)I
MethodParameters:
Name Flags
name
public void setSendBufferSize(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: iload 1
ifgt 2
1: new java.lang.IllegalArgumentException
dup
ldc "Invalid send size"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getstatic java.net.StandardSocketOptions.SO_SNDBUF:Ljava/net/SocketOption;
iload 1
invokevirtual sun.nio.ch.DatagramSocketAdaptor.setIntOption:(Ljava/net/SocketOption;I)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/nio/ch/DatagramSocketAdaptor;
0 4 1 size I
Exceptions:
throws java.net.SocketException
MethodParameters:
Name Flags
size
public int getSendBufferSize();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic java.net.StandardSocketOptions.SO_SNDBUF:Ljava/net/SocketOption;
invokevirtual sun.nio.ch.DatagramSocketAdaptor.getIntOption:(Ljava/net/SocketOption;)I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/DatagramSocketAdaptor;
Exceptions:
throws java.net.SocketException
public void setReceiveBufferSize(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: iload 1
ifgt 2
1: new java.lang.IllegalArgumentException
dup
ldc "Invalid receive size"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getstatic java.net.StandardSocketOptions.SO_RCVBUF:Ljava/net/SocketOption;
iload 1
invokevirtual sun.nio.ch.DatagramSocketAdaptor.setIntOption:(Ljava/net/SocketOption;I)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/nio/ch/DatagramSocketAdaptor;
0 4 1 size I
Exceptions:
throws java.net.SocketException
MethodParameters:
Name Flags
size
public int getReceiveBufferSize();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic java.net.StandardSocketOptions.SO_RCVBUF:Ljava/net/SocketOption;
invokevirtual sun.nio.ch.DatagramSocketAdaptor.getIntOption:(Ljava/net/SocketOption;)I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/DatagramSocketAdaptor;
Exceptions:
throws java.net.SocketException
public void setReuseAddress(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getstatic java.net.StandardSocketOptions.SO_REUSEADDR:Ljava/net/SocketOption;
iload 1
invokevirtual sun.nio.ch.DatagramSocketAdaptor.setBooleanOption:(Ljava/net/SocketOption;Z)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/nio/ch/DatagramSocketAdaptor;
0 2 1 on Z
Exceptions:
throws java.net.SocketException
MethodParameters:
Name Flags
on
public boolean getReuseAddress();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic java.net.StandardSocketOptions.SO_REUSEADDR:Ljava/net/SocketOption;
invokevirtual sun.nio.ch.DatagramSocketAdaptor.getBooleanOption:(Ljava/net/SocketOption;)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/DatagramSocketAdaptor;
Exceptions:
throws java.net.SocketException
public void setBroadcast(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getstatic java.net.StandardSocketOptions.SO_BROADCAST:Ljava/net/SocketOption;
iload 1
invokevirtual sun.nio.ch.DatagramSocketAdaptor.setBooleanOption:(Ljava/net/SocketOption;Z)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/nio/ch/DatagramSocketAdaptor;
0 2 1 on Z
Exceptions:
throws java.net.SocketException
MethodParameters:
Name Flags
on
public boolean getBroadcast();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic java.net.StandardSocketOptions.SO_BROADCAST:Ljava/net/SocketOption;
invokevirtual sun.nio.ch.DatagramSocketAdaptor.getBooleanOption:(Ljava/net/SocketOption;)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/DatagramSocketAdaptor;
Exceptions:
throws java.net.SocketException
public void setTrafficClass(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getstatic java.net.StandardSocketOptions.IP_TOS:Ljava/net/SocketOption;
iload 1
invokevirtual sun.nio.ch.DatagramSocketAdaptor.setIntOption:(Ljava/net/SocketOption;I)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/nio/ch/DatagramSocketAdaptor;
0 2 1 tc I
Exceptions:
throws java.net.SocketException
MethodParameters:
Name Flags
tc
public int getTrafficClass();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic java.net.StandardSocketOptions.IP_TOS:Ljava/net/SocketOption;
invokevirtual sun.nio.ch.DatagramSocketAdaptor.getIntOption:(Ljava/net/SocketOption;)I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/DatagramSocketAdaptor;
Exceptions:
throws java.net.SocketException
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
invokevirtual sun.nio.ch.DatagramChannelImpl.close:()V
1: goto 4
StackMap locals:
StackMap stack: java.io.IOException
2: astore 1
start local 1 3: new java.lang.Error
dup
aload 1
invokespecial java.lang.Error.<init>:(Ljava/lang/Throwable;)V
athrow
end local 1 4: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/nio/ch/DatagramSocketAdaptor;
3 4 1 x Ljava/io/IOException;
Exception table:
from to target type
0 1 2 Class java.io.IOException
public boolean isClosed();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
invokevirtual sun.nio.ch.DatagramChannelImpl.isOpen:()Z
ifeq 1
iconst_0
goto 2
StackMap locals:
StackMap stack:
1: iconst_1
StackMap locals:
StackMap stack: int
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/nio/ch/DatagramSocketAdaptor;
public java.nio.channels.DatagramChannel getChannel();
descriptor: ()Ljava/nio/channels/DatagramChannel;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/DatagramSocketAdaptor;
}
SourceFile: "DatagramSocketAdaptor.java"
NestMembers:
sun.nio.ch.DatagramSocketAdaptor$1
InnerClasses:
sun.nio.ch.DatagramSocketAdaptor$1