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 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
iconst_0
putfield sun.nio.ch.DatagramSocketAdaptor.timeout:I
2: aload 0
aload 1
putfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
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 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
ifeq 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;)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=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.localAddress:()Ljava/net/SocketAddress;
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/SocketAddress;
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=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;
invokevirtual sun.nio.ch.DatagramChannelImpl.remoteAddress:()Ljava/net/SocketAddress;
11: checkcast java.net.InetSocketAddress
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 java.net.SocketAddress receive(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)Ljava/net/SocketAddress;
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 2
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;
areturn
2: StackMap locals:
StackMap stack:
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
3: 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;
dup
astore 2
start local 2 4: ifnull 10
5: aload 2
astore 9
6: 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
7: goto 9
StackMap locals: sun.nio.ch.DatagramSocketAdaptor java.nio.ByteBuffer java.net.SocketAddress top top top top top top java.net.SocketAddress
StackMap stack: java.nio.channels.ClosedChannelException
8: pop
9: StackMap locals:
StackMap stack:
aload 9
areturn
10: StackMap locals: sun.nio.ch.DatagramSocketAdaptor java.nio.ByteBuffer java.net.SocketAddress
StackMap stack:
aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.timeout:I
i2l
lstore 3
start local 3 11: 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 13
12: new java.nio.channels.ClosedChannelException
dup
invokespecial java.nio.channels.ClosedChannelException.<init>:()V
athrow
13: StackMap locals:
StackMap stack:
invokestatic java.lang.System.currentTimeMillis:()J
lstore 5
start local 5 14: aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
getstatic sun.nio.ch.Net.POLLIN:S
lload 3
invokevirtual sun.nio.ch.DatagramChannelImpl.poll:(IJ)I
istore 7
start local 7 15: iload 7
ifle 22
iload 7
getstatic sun.nio.ch.Net.POLLIN:S
iand
ifeq 22
16: 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;
dup
astore 2
ifnull 22
17: aload 2
astore 9
18: 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
19: goto 21
StackMap locals: sun.nio.ch.DatagramSocketAdaptor java.nio.ByteBuffer java.net.SocketAddress long long int top java.net.SocketAddress
StackMap stack: java.nio.channels.ClosedChannelException
20: pop
21: StackMap locals:
StackMap stack:
aload 9
areturn
22: StackMap locals: sun.nio.ch.DatagramSocketAdaptor java.nio.ByteBuffer java.net.SocketAddress long long int
StackMap stack:
lload 3
invokestatic java.lang.System.currentTimeMillis:()J
lload 5
lsub
lsub
lstore 3
23: lload 3
lconst_0
lcmp
ifgt 11
24: new java.net.SocketTimeoutException
dup
invokespecial java.net.SocketTimeoutException.<init>:()V
athrow
end local 7 end local 5 end local 3 end local 2 25: StackMap locals: sun.nio.ch.DatagramSocketAdaptor java.nio.ByteBuffer
StackMap stack: java.lang.Throwable
astore 8
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: goto 29
StackMap locals: sun.nio.ch.DatagramSocketAdaptor java.nio.ByteBuffer top top top top top top java.lang.Throwable
StackMap stack: java.nio.channels.ClosedChannelException
28: pop
29: StackMap locals:
StackMap stack:
aload 8
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 30 0 this Lsun/nio/ch/DatagramSocketAdaptor;
0 30 1 bb Ljava/nio/ByteBuffer;
4 25 2 sender Ljava/net/SocketAddress;
11 25 3 to J
14 25 5 st J
15 25 7 result I
Exception table:
from to target type
6 7 8 Class java.nio.channels.ClosedChannelException
18 19 20 Class java.nio.channels.ClosedChannelException
3 6 25 any
10 18 25 any
22 25 25 any
26 27 28 Class java.nio.channels.ClosedChannelException
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/SocketAddress;
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.SocketAddress
StackMap stack:
aload 1
checkcast java.net.InetSocketAddress
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.SocketAddress 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/SocketAddress;
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.getLocalAddress:()Ljava/net/SocketAddress;
astore 1
start local 1 3: aload 1
ifnull 7
4: aload 1
checkcast java.net.InetSocketAddress
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/SocketAddress;
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