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 sun.nio.ch.OptionAdaptor opts;
descriptor: Lsun/nio/ch/OptionAdaptor;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private volatile int timeout;
descriptor: I
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private volatile int trafficClass;
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 void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new sun.nio.ch.DatagramSocketAdaptor$1
dup
invokespecial sun.nio.ch.DatagramSocketAdaptor$1.<init>:()V
1: putstatic sun.nio.ch.DatagramSocketAdaptor.dummyDatagramSocket:Ljava/net/DatagramSocketImpl;
2: 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
aconst_null
putfield sun.nio.ch.DatagramSocketAdaptor.opts:Lsun/nio/ch/OptionAdaptor;
2: aload 0
iconst_0
putfield sun.nio.ch.DatagramSocketAdaptor.timeout:I
3: aload 0
iconst_0
putfield sun.nio.ch.DatagramSocketAdaptor.trafficClass:I
4: aload 0
aload 1
putfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/nio/ch/DatagramSocketAdaptor;
0 6 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
invokevirtual sun.nio.ch.DatagramSocketAdaptor.isClosed:()Z
ifne 8
7: return
8: 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
9: goto 12
StackMap locals:
StackMap stack: java.lang.Exception
10: astore 4
start local 4 11: aload 4
invokestatic sun.nio.ch.Net.translateToSocketException:(Ljava/lang/Exception;)V
end local 4 12: StackMap locals:
StackMap stack:
return
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;
0 13 1 remote Ljava/net/SocketAddress;
1 13 2 isa Ljava/net/InetSocketAddress;
2 13 3 port I
11 12 4 x Ljava/lang/Exception;
Exception table:
from to target type
8 9 10 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;)V
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=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: new java.lang.IllegalArgumentException
dup
ldc "Address can't be null"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual sun.nio.ch.DatagramSocketAdaptor.connectInternal:(Ljava/net/SocketAddress;)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 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.isBound:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 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.isConnected:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/DatagramSocketAdaptor;
public java.net.InetAddress getInetAddress();
descriptor: ()Ljava/net/InetAddress;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual sun.nio.ch.DatagramSocketAdaptor.isConnected:()Z
ifeq 2
1: aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
invokevirtual sun.nio.ch.DatagramChannelImpl.remoteAddress:()Ljava/net/SocketAddress;
invokestatic sun.nio.ch.Net.asInetSocketAddress:(Ljava/net/SocketAddress;)Ljava/net/InetSocketAddress;
invokevirtual java.net.InetSocketAddress.getAddress:()Ljava/net/InetAddress;
goto 3
2: StackMap locals:
StackMap stack:
aconst_null
3: StackMap locals:
StackMap stack: java.net.InetAddress
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/nio/ch/DatagramSocketAdaptor;
public int getPort();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual sun.nio.ch.DatagramSocketAdaptor.isConnected:()Z
ifeq 2
1: aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
invokevirtual sun.nio.ch.DatagramChannelImpl.remoteAddress:()Ljava/net/SocketAddress;
invokestatic sun.nio.ch.Net.asInetSocketAddress:(Ljava/net/SocketAddress;)Ljava/net/InetSocketAddress;
invokevirtual java.net.InetSocketAddress.getPort:()I
goto 3
2: StackMap locals:
StackMap stack:
iconst_m1
3: StackMap locals:
StackMap stack: int
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/nio/ch/DatagramSocketAdaptor;
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 18
9: aload 1
invokevirtual java.net.DatagramPacket.getAddress:()Ljava/net/InetAddress;
ifnonnull 16
10: aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
getfield sun.nio.ch.DatagramChannelImpl.remoteAddress:Ljava/net/InetSocketAddress;
11: astore 5
start local 5 12: aload 1
aload 5
invokevirtual java.net.InetSocketAddress.getPort:()I
invokevirtual java.net.DatagramPacket.setPort:(I)V
13: aload 1
aload 5
invokevirtual java.net.InetSocketAddress.getAddress:()Ljava/net/InetAddress;
invokevirtual java.net.DatagramPacket.setAddress:(Ljava/net/InetAddress;)V
14: 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 15: goto 19
16: 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
17: goto 19
18: 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 19: StackMap locals:
StackMap stack:
aload 3
monitorexit
20: goto 25
StackMap locals:
StackMap stack: java.lang.Throwable
21: aload 3
monitorexit
22: athrow
23: StackMap locals: sun.nio.ch.DatagramSocketAdaptor java.net.DatagramPacket java.lang.Object
StackMap stack: java.io.IOException
astore 3
start local 3 24: aload 3
invokestatic sun.nio.ch.Net.translateException:(Ljava/lang/Exception;)V
end local 3 25: StackMap locals:
StackMap stack:
aload 2
monitorexit
26: goto 29
StackMap locals:
StackMap stack: java.lang.Throwable
27: aload 2
monitorexit
28: athrow
29: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 30 0 this Lsun/nio/ch/DatagramSocketAdaptor;
0 30 1 p Ljava/net/DatagramPacket;
8 19 4 bb Ljava/nio/ByteBuffer;
12 15 5 isa Ljava/net/InetSocketAddress;
24 25 3 x Ljava/io/IOException;
Exception table:
from to target type
4 20 21 any
21 22 21 any
3 23 23 Class java.io.IOException
1 26 27 any
27 28 27 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
p
private void receive(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=10, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.timeout:I
ifne 3
1: 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;
pop
2: return
3: StackMap locals:
StackMap stack:
aconst_null
astore 2
start local 2 4: aconst_null
astore 3
start local 3 5: aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
iconst_0
invokevirtual sun.nio.ch.DatagramChannelImpl.configureBlocking:(Z)Ljava/nio/channels/SelectableChannel;
pop
6: 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;
ifnull 14
7: aload 2
ifnull 9
8: aload 2
invokevirtual java.nio.channels.SelectionKey.cancel:()V
9: StackMap locals: java.nio.channels.SelectionKey java.nio.channels.Selector
StackMap stack:
aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
invokevirtual sun.nio.ch.DatagramChannelImpl.isOpen:()Z
ifeq 11
10: aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
iconst_1
invokevirtual sun.nio.ch.DatagramChannelImpl.configureBlocking:(Z)Ljava/nio/channels/SelectableChannel;
pop
11: StackMap locals:
StackMap stack:
aload 3
ifnull 13
12: aload 3
invokestatic sun.nio.ch.Util.releaseTemporarySelector:(Ljava/nio/channels/Selector;)V
13: StackMap locals:
StackMap stack:
return
14: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
invokestatic sun.nio.ch.Util.getTemporarySelector:(Ljava/nio/channels/SelectableChannel;)Ljava/nio/channels/Selector;
astore 3
15: aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
aload 3
iconst_1
invokevirtual sun.nio.ch.DatagramChannelImpl.register:(Ljava/nio/channels/Selector;I)Ljava/nio/channels/SelectionKey;
astore 2
16: aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.timeout:I
i2l
lstore 4
start local 4 17: 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 19
18: new java.nio.channels.ClosedChannelException
dup
invokespecial java.nio.channels.ClosedChannelException.<init>:()V
athrow
19: StackMap locals:
StackMap stack:
invokestatic java.lang.System.currentTimeMillis:()J
lstore 6
start local 6 20: aload 3
lload 4
invokevirtual java.nio.channels.Selector.select:(J)I
istore 8
start local 8 21: iload 8
ifle 30
aload 2
invokevirtual java.nio.channels.SelectionKey.isReadable:()Z
ifeq 30
22: 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;
ifnull 30
23: aload 2
ifnull 25
24: aload 2
invokevirtual java.nio.channels.SelectionKey.cancel:()V
25: StackMap locals: long int
StackMap stack:
aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
invokevirtual sun.nio.ch.DatagramChannelImpl.isOpen:()Z
ifeq 27
26: aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
iconst_1
invokevirtual sun.nio.ch.DatagramChannelImpl.configureBlocking:(Z)Ljava/nio/channels/SelectableChannel;
pop
27: StackMap locals:
StackMap stack:
aload 3
ifnull 29
28: aload 3
invokestatic sun.nio.ch.Util.releaseTemporarySelector:(Ljava/nio/channels/Selector;)V
29: StackMap locals:
StackMap stack:
return
30: StackMap locals:
StackMap stack:
aload 3
invokevirtual java.nio.channels.Selector.selectedKeys:()Ljava/util/Set;
aload 2
invokeinterface java.util.Set.remove:(Ljava/lang/Object;)Z
pop
31: lload 4
invokestatic java.lang.System.currentTimeMillis:()J
lload 6
lsub
lsub
lstore 4
32: lload 4
lconst_0
lcmp
ifgt 17
33: new java.net.SocketTimeoutException
dup
invokespecial java.net.SocketTimeoutException.<init>:()V
athrow
end local 8 end local 6 end local 4 34: StackMap locals: sun.nio.ch.DatagramSocketAdaptor java.nio.ByteBuffer java.nio.channels.SelectionKey java.nio.channels.Selector
StackMap stack: java.lang.Throwable
astore 9
35: aload 2
ifnull 37
36: aload 2
invokevirtual java.nio.channels.SelectionKey.cancel:()V
37: StackMap locals: sun.nio.ch.DatagramSocketAdaptor java.nio.ByteBuffer java.nio.channels.SelectionKey java.nio.channels.Selector top top top top top java.lang.Throwable
StackMap stack:
aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
invokevirtual sun.nio.ch.DatagramChannelImpl.isOpen:()Z
ifeq 39
38: aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
iconst_1
invokevirtual sun.nio.ch.DatagramChannelImpl.configureBlocking:(Z)Ljava/nio/channels/SelectableChannel;
pop
39: StackMap locals:
StackMap stack:
aload 3
ifnull 41
40: aload 3
invokestatic sun.nio.ch.Util.releaseTemporarySelector:(Ljava/nio/channels/Selector;)V
41: StackMap locals:
StackMap stack:
aload 9
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 42 0 this Lsun/nio/ch/DatagramSocketAdaptor;
0 42 1 bb Ljava/nio/ByteBuffer;
4 42 2 sk Ljava/nio/channels/SelectionKey;
5 42 3 sel Ljava/nio/channels/Selector;
17 34 4 to J
20 34 6 st J
21 34 8 ns I
Exception table:
from to target type
6 7 34 any
14 23 34 any
30 34 34 any
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=5, 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;)V
9: 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 4 10: aload 3
monitorexit
11: goto 16
StackMap locals: sun.nio.ch.DatagramSocketAdaptor java.net.DatagramPacket java.lang.Object java.net.DatagramPacket
StackMap stack: java.lang.Throwable
12: aload 3
monitorexit
13: athrow
14: StackMap locals: sun.nio.ch.DatagramSocketAdaptor java.net.DatagramPacket java.lang.Object
StackMap stack: java.io.IOException
astore 3
start local 3 15: aload 3
invokestatic sun.nio.ch.Net.translateException:(Ljava/lang/Exception;)V
end local 3 16: StackMap locals:
StackMap stack:
aload 2
monitorexit
17: goto 20
StackMap locals:
StackMap stack: java.lang.Throwable
18: aload 2
monitorexit
19: athrow
20: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Lsun/nio/ch/DatagramSocketAdaptor;
0 21 1 p Ljava/net/DatagramPacket;
8 10 4 bb Ljava/nio/ByteBuffer;
15 16 3 x Ljava/io/IOException;
Exception table:
from to target type
4 11 12 any
12 13 12 any
3 14 14 Class java.io.IOException
1 17 18 any
18 19 18 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=1, 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/SocketAddress;
invokestatic sun.nio.ch.Net.asInetSocketAddress:(Ljava/net/SocketAddress;)Ljava/net/InetSocketAddress;
invokevirtual java.net.InetSocketAddress.getAddress:()Ljava/net/InetAddress;
3: areturn
4: StackMap locals:
StackMap stack: java.lang.Exception
pop
5: new java.net.InetSocketAddress
dup
iconst_0
invokespecial java.net.InetSocketAddress.<init>:(I)V
invokevirtual java.net.InetSocketAddress.getAddress:()Ljava/net/InetAddress;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/nio/ch/DatagramSocketAdaptor;
Exception table:
from to target type
2 3 4 Class java.lang.Exception
public int getLocalPort();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, 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/SocketAddress;
invokestatic sun.nio.ch.Net.asInetSocketAddress:(Ljava/net/SocketAddress;)Ljava/net/InetSocketAddress;
invokevirtual java.net.InetSocketAddress.getPort:()I
3: ireturn
4: StackMap locals:
StackMap stack: java.lang.Exception
pop
5: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/nio/ch/DatagramSocketAdaptor;
Exception table:
from to target type
2 3 4 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 sun.nio.ch.OptionAdaptor opts();
descriptor: ()Lsun/nio/ch/OptionAdaptor;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.opts:Lsun/nio/ch/OptionAdaptor;
ifnonnull 2
1: aload 0
new sun.nio.ch.OptionAdaptor
dup
aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
invokespecial sun.nio.ch.OptionAdaptor.<init>:(Lsun/nio/ch/DatagramChannelImpl;)V
putfield sun.nio.ch.DatagramSocketAdaptor.opts:Lsun/nio/ch/OptionAdaptor;
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.opts:Lsun/nio/ch/OptionAdaptor;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/nio/ch/DatagramSocketAdaptor;
public void setSendBufferSize(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
invokevirtual sun.nio.ch.DatagramSocketAdaptor.opts:()Lsun/nio/ch/OptionAdaptor;
iload 1
invokevirtual sun.nio.ch.OptionAdaptor.setSendBufferSize:(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 size I
Exceptions:
throws java.net.SocketException
MethodParameters:
Name Flags
size
public int getSendBufferSize();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual sun.nio.ch.DatagramSocketAdaptor.opts:()Lsun/nio/ch/OptionAdaptor;
invokevirtual sun.nio.ch.OptionAdaptor.getSendBufferSize:()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=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual sun.nio.ch.DatagramSocketAdaptor.opts:()Lsun/nio/ch/OptionAdaptor;
iload 1
invokevirtual sun.nio.ch.OptionAdaptor.setReceiveBufferSize:(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 size I
Exceptions:
throws java.net.SocketException
MethodParameters:
Name Flags
size
public int getReceiveBufferSize();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual sun.nio.ch.DatagramSocketAdaptor.opts:()Lsun/nio/ch/OptionAdaptor;
invokevirtual sun.nio.ch.OptionAdaptor.getReceiveBufferSize:()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=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual sun.nio.ch.DatagramSocketAdaptor.opts:()Lsun/nio/ch/OptionAdaptor;
iload 1
invokevirtual sun.nio.ch.OptionAdaptor.setReuseAddress:(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=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual sun.nio.ch.DatagramSocketAdaptor.opts:()Lsun/nio/ch/OptionAdaptor;
invokevirtual sun.nio.ch.OptionAdaptor.getReuseAddress:()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=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual sun.nio.ch.DatagramSocketAdaptor.opts:()Lsun/nio/ch/OptionAdaptor;
iload 1
invokevirtual sun.nio.ch.OptionAdaptor.setBroadcast:(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=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual sun.nio.ch.DatagramSocketAdaptor.opts:()Lsun/nio/ch/OptionAdaptor;
invokevirtual sun.nio.ch.OptionAdaptor.getBroadcast:()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=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual sun.nio.ch.DatagramSocketAdaptor.opts:()Lsun/nio/ch/OptionAdaptor;
iload 1
invokevirtual sun.nio.ch.OptionAdaptor.setTrafficClass:(I)V
1: aload 0
iload 1
putfield sun.nio.ch.DatagramSocketAdaptor.trafficClass:I
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 tc I
Exceptions:
throws java.net.SocketException
MethodParameters:
Name Flags
tc
public int getTrafficClass();
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.opts:()Lsun/nio/ch/OptionAdaptor;
invokevirtual sun.nio.ch.OptionAdaptor.getTrafficClass:()I
istore 1
start local 1 1: iload 1
ifge 3
2: aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.trafficClass:I
istore 1
3: StackMap locals: int
StackMap stack:
iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/nio/ch/DatagramSocketAdaptor;
1 4 1 tc I
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