public class sun.nio.ch.SocketAdaptor extends java.net.Socket
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.nio.ch.SocketAdaptor
super_class: java.net.Socket
{
private final sun.nio.ch.SocketChannelImpl sc;
descriptor: Lsun/nio/ch/SocketChannelImpl;
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 java.io.InputStream socketInputStream;
descriptor: Ljava/io/InputStream;
flags: (0x0002) ACC_PRIVATE
private void <init>(sun.nio.ch.SocketChannelImpl);
descriptor: (Lsun/nio/ch/SocketChannelImpl;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.net.Socket.<init>:()V
1: aload 0
aconst_null
putfield sun.nio.ch.SocketAdaptor.opts:Lsun/nio/ch/OptionAdaptor;
2: aload 0
iconst_0
putfield sun.nio.ch.SocketAdaptor.timeout:I
3: aload 0
iconst_0
putfield sun.nio.ch.SocketAdaptor.trafficClass:I
4: aload 0
aconst_null
putfield sun.nio.ch.SocketAdaptor.socketInputStream:Ljava/io/InputStream;
5: aload 0
aload 1
putfield sun.nio.ch.SocketAdaptor.sc:Lsun/nio/ch/SocketChannelImpl;
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/nio/ch/SocketAdaptor;
0 7 1 sc Lsun/nio/ch/SocketChannelImpl;
MethodParameters:
Name Flags
sc
public static java.net.Socket create(sun.nio.ch.SocketChannelImpl);
descriptor: (Lsun/nio/ch/SocketChannelImpl;)Ljava/net/Socket;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new sun.nio.ch.SocketAdaptor
dup
aload 0
invokespecial sun.nio.ch.SocketAdaptor.<init>:(Lsun/nio/ch/SocketChannelImpl;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 sc Lsun/nio/ch/SocketChannelImpl;
MethodParameters:
Name Flags
sc
public java.nio.channels.SocketChannel getChannel();
descriptor: ()Ljava/nio/channels/SocketChannel;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.SocketAdaptor.sc:Lsun/nio/ch/SocketChannelImpl;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/SocketAdaptor;
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 0
aload 1
iconst_0
invokevirtual sun.nio.ch.SocketAdaptor.connect:(Ljava/net/SocketAddress;I)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/nio/ch/SocketAdaptor;
0 2 1 remote Ljava/net/SocketAddress;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
remote
public void connect(java.net.SocketAddress, int);
descriptor: (Ljava/net/SocketAddress;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=12, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ifnonnull 2
1: new java.lang.IllegalArgumentException
dup
ldc "connect: The address can't be null"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
iload 2
ifge 4
3: new java.lang.IllegalArgumentException
dup
ldc "connect: timeout can't be negative"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.SocketAdaptor.sc:Lsun/nio/ch/SocketChannelImpl;
invokevirtual sun.nio.ch.SocketChannelImpl.blockingLock:()Ljava/lang/Object;
dup
astore 3
monitorenter
5: aload 0
getfield sun.nio.ch.SocketAdaptor.sc:Lsun/nio/ch/SocketChannelImpl;
invokevirtual sun.nio.ch.SocketChannelImpl.isBlocking:()Z
ifne 7
6: new java.nio.channels.IllegalBlockingModeException
dup
invokespecial java.nio.channels.IllegalBlockingModeException.<init>:()V
athrow
7: StackMap locals: java.lang.Object
StackMap stack:
iload 2
ifne 11
8: aload 0
getfield sun.nio.ch.SocketAdaptor.sc:Lsun/nio/ch/SocketChannelImpl;
aload 1
invokevirtual sun.nio.ch.SocketChannelImpl.connect:(Ljava/net/SocketAddress;)Z
pop
9: aload 3
monitorexit
10: return
11: StackMap locals:
StackMap stack:
aconst_null
astore 4
start local 4 12: aconst_null
astore 5
start local 5 13: aload 0
getfield sun.nio.ch.SocketAdaptor.sc:Lsun/nio/ch/SocketChannelImpl;
iconst_0
invokevirtual sun.nio.ch.SocketChannelImpl.configureBlocking:(Z)Ljava/nio/channels/SelectableChannel;
pop
14: aload 0
getfield sun.nio.ch.SocketAdaptor.sc:Lsun/nio/ch/SocketChannelImpl;
aload 1
invokevirtual sun.nio.ch.SocketChannelImpl.connect:(Ljava/net/SocketAddress;)Z
ifeq 23
15: aload 4
ifnull 17
16: aload 4
invokevirtual java.nio.channels.SelectionKey.cancel:()V
17: StackMap locals: java.nio.channels.SelectionKey java.nio.channels.Selector
StackMap stack:
aload 0
getfield sun.nio.ch.SocketAdaptor.sc:Lsun/nio/ch/SocketChannelImpl;
invokevirtual sun.nio.ch.SocketChannelImpl.isOpen:()Z
ifeq 19
18: aload 0
getfield sun.nio.ch.SocketAdaptor.sc:Lsun/nio/ch/SocketChannelImpl;
iconst_1
invokevirtual sun.nio.ch.SocketChannelImpl.configureBlocking:(Z)Ljava/nio/channels/SelectableChannel;
pop
19: StackMap locals:
StackMap stack:
aload 5
ifnull 21
20: aload 5
invokestatic sun.nio.ch.Util.releaseTemporarySelector:(Ljava/nio/channels/Selector;)V
21: StackMap locals:
StackMap stack:
aload 3
monitorexit
22: return
23: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.SocketAdaptor.sc:Lsun/nio/ch/SocketChannelImpl;
invokestatic sun.nio.ch.Util.getTemporarySelector:(Ljava/nio/channels/SelectableChannel;)Ljava/nio/channels/Selector;
astore 5
24: aload 0
getfield sun.nio.ch.SocketAdaptor.sc:Lsun/nio/ch/SocketChannelImpl;
aload 5
bipush 8
invokevirtual sun.nio.ch.SocketChannelImpl.register:(Ljava/nio/channels/Selector;I)Ljava/nio/channels/SelectionKey;
astore 4
25: iload 2
i2l
lstore 6
start local 6 26: StackMap locals: long
StackMap stack:
aload 0
getfield sun.nio.ch.SocketAdaptor.sc:Lsun/nio/ch/SocketChannelImpl;
invokevirtual sun.nio.ch.SocketChannelImpl.isOpen:()Z
ifne 28
27: new java.nio.channels.ClosedChannelException
dup
invokespecial java.nio.channels.ClosedChannelException.<init>:()V
athrow
28: StackMap locals:
StackMap stack:
invokestatic java.lang.System.currentTimeMillis:()J
lstore 8
start local 8 29: aload 5
lload 6
invokevirtual java.nio.channels.Selector.select:(J)I
istore 10
start local 10 30: iload 10
ifle 33
31: aload 4
invokevirtual java.nio.channels.SelectionKey.isConnectable:()Z
ifeq 33
aload 0
getfield sun.nio.ch.SocketAdaptor.sc:Lsun/nio/ch/SocketChannelImpl;
invokevirtual sun.nio.ch.SocketChannelImpl.finishConnect:()Z
ifeq 33
32: goto 48
33: StackMap locals: long int
StackMap stack:
aload 5
invokevirtual java.nio.channels.Selector.selectedKeys:()Ljava/util/Set;
aload 4
invokeinterface java.util.Set.remove:(Ljava/lang/Object;)Z
pop
34: lload 6
invokestatic java.lang.System.currentTimeMillis:()J
lload 8
lsub
lsub
lstore 6
35: lload 6
lconst_0
lcmp
ifgt 26
36: aload 0
getfield sun.nio.ch.SocketAdaptor.sc:Lsun/nio/ch/SocketChannelImpl;
invokevirtual sun.nio.ch.SocketChannelImpl.close:()V
37: goto 39
StackMap locals:
StackMap stack: java.io.IOException
38: pop
39: StackMap locals:
StackMap stack:
new java.net.SocketTimeoutException
dup
invokespecial java.net.SocketTimeoutException.<init>:()V
athrow
end local 10 end local 8 end local 6 40: StackMap locals: sun.nio.ch.SocketAdaptor java.net.SocketAddress int java.lang.Object java.nio.channels.SelectionKey java.nio.channels.Selector
StackMap stack: java.lang.Throwable
astore 11
41: aload 4
ifnull 43
42: aload 4
invokevirtual java.nio.channels.SelectionKey.cancel:()V
43: StackMap locals: sun.nio.ch.SocketAdaptor java.net.SocketAddress int java.lang.Object java.nio.channels.SelectionKey java.nio.channels.Selector top top top top top java.lang.Throwable
StackMap stack:
aload 0
getfield sun.nio.ch.SocketAdaptor.sc:Lsun/nio/ch/SocketChannelImpl;
invokevirtual sun.nio.ch.SocketChannelImpl.isOpen:()Z
ifeq 45
44: aload 0
getfield sun.nio.ch.SocketAdaptor.sc:Lsun/nio/ch/SocketChannelImpl;
iconst_1
invokevirtual sun.nio.ch.SocketChannelImpl.configureBlocking:(Z)Ljava/nio/channels/SelectableChannel;
pop
45: StackMap locals:
StackMap stack:
aload 5
ifnull 47
46: aload 5
invokestatic sun.nio.ch.Util.releaseTemporarySelector:(Ljava/nio/channels/Selector;)V
47: StackMap locals:
StackMap stack:
aload 11
athrow
48: StackMap locals: sun.nio.ch.SocketAdaptor java.net.SocketAddress int java.lang.Object java.nio.channels.SelectionKey java.nio.channels.Selector
StackMap stack:
aload 4
ifnull 50
49: aload 4
invokevirtual java.nio.channels.SelectionKey.cancel:()V
50: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.SocketAdaptor.sc:Lsun/nio/ch/SocketChannelImpl;
invokevirtual sun.nio.ch.SocketChannelImpl.isOpen:()Z
ifeq 52
51: aload 0
getfield sun.nio.ch.SocketAdaptor.sc:Lsun/nio/ch/SocketChannelImpl;
iconst_1
invokevirtual sun.nio.ch.SocketChannelImpl.configureBlocking:(Z)Ljava/nio/channels/SelectableChannel;
pop
52: StackMap locals:
StackMap stack:
aload 5
ifnull 57
53: aload 5
invokestatic sun.nio.ch.Util.releaseTemporarySelector:(Ljava/nio/channels/Selector;)V
end local 5 end local 4 54: goto 57
StackMap locals: sun.nio.ch.SocketAdaptor java.net.SocketAddress int java.lang.Object
StackMap stack: java.lang.Exception
55: astore 4
start local 4 56: aload 4
iconst_1
invokestatic sun.nio.ch.Net.translateException:(Ljava/lang/Exception;Z)V
end local 4 57: StackMap locals:
StackMap stack:
aload 3
monitorexit
58: goto 61
StackMap locals:
StackMap stack: java.lang.Throwable
59: aload 3
monitorexit
60: athrow
61: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 62 0 this Lsun/nio/ch/SocketAdaptor;
0 62 1 remote Ljava/net/SocketAddress;
0 62 2 timeout I
12 54 4 sk Ljava/nio/channels/SelectionKey;
13 54 5 sel Ljava/nio/channels/Selector;
26 40 6 to J
29 40 8 st J
30 40 10 ns I
56 57 4 x Ljava/lang/Exception;
Exception table:
from to target type
36 37 38 Class java.io.IOException
14 15 40 any
23 40 40 any
7 9 55 Class java.lang.Exception
11 21 55 Class java.lang.Exception
23 54 55 Class java.lang.Exception
5 10 59 any
11 22 59 any
23 58 59 any
59 60 59 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
remote
timeout
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.SocketAdaptor.sc:Lsun/nio/ch/SocketChannelImpl;
aload 1
invokevirtual sun.nio.ch.SocketChannelImpl.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.translateException:(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/SocketAdaptor;
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.io.IOException
MethodParameters:
Name Flags
local
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
getfield sun.nio.ch.SocketAdaptor.sc:Lsun/nio/ch/SocketChannelImpl;
invokevirtual sun.nio.ch.SocketChannelImpl.isConnected:()Z
ifne 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.SocketAdaptor.sc:Lsun/nio/ch/SocketChannelImpl;
invokevirtual sun.nio.ch.SocketChannelImpl.remoteAddress:()Ljava/net/SocketAddress;
invokestatic sun.nio.ch.Net.asInetSocketAddress:(Ljava/net/SocketAddress;)Ljava/net/InetSocketAddress;
invokevirtual java.net.InetSocketAddress.getAddress:()Ljava/net/InetAddress;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/nio/ch/SocketAdaptor;
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
getfield sun.nio.ch.SocketAdaptor.sc:Lsun/nio/ch/SocketChannelImpl;
invokevirtual sun.nio.ch.SocketChannelImpl.isBound:()Z
ifne 2
1: new java.net.InetSocketAddress
dup
iconst_0
invokespecial java.net.InetSocketAddress.<init>:(I)V
invokevirtual java.net.InetSocketAddress.getAddress:()Ljava/net/InetAddress;
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.SocketAdaptor.sc:Lsun/nio/ch/SocketChannelImpl;
invokevirtual sun.nio.ch.SocketChannelImpl.localAddress:()Ljava/net/InetSocketAddress;
invokestatic sun.nio.ch.Net.getRevealedLocalAddress:(Ljava/net/InetSocketAddress;)Ljava/net/InetSocketAddress;
invokevirtual java.net.InetSocketAddress.getAddress:()Ljava/net/InetAddress;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/nio/ch/SocketAdaptor;
public int getPort();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.SocketAdaptor.sc:Lsun/nio/ch/SocketChannelImpl;
invokevirtual sun.nio.ch.SocketChannelImpl.isConnected:()Z
ifne 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.SocketAdaptor.sc:Lsun/nio/ch/SocketChannelImpl;
invokevirtual sun.nio.ch.SocketChannelImpl.remoteAddress:()Ljava/net/SocketAddress;
invokestatic sun.nio.ch.Net.asInetSocketAddress:(Ljava/net/SocketAddress;)Ljava/net/InetSocketAddress;
invokevirtual java.net.InetSocketAddress.getPort:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/nio/ch/SocketAdaptor;
public int getLocalPort();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.SocketAdaptor.sc:Lsun/nio/ch/SocketChannelImpl;
invokevirtual sun.nio.ch.SocketChannelImpl.isBound:()Z
ifne 2
1: iconst_m1
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.SocketAdaptor.sc:Lsun/nio/ch/SocketChannelImpl;
invokevirtual sun.nio.ch.SocketChannelImpl.localAddress:()Ljava/net/InetSocketAddress;
invokestatic sun.nio.ch.Net.asInetSocketAddress:(Ljava/net/SocketAddress;)Ljava/net/InetSocketAddress;
invokevirtual java.net.InetSocketAddress.getPort:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/nio/ch/SocketAdaptor;
public java.io.InputStream getInputStream();
descriptor: ()Ljava/io/InputStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.SocketAdaptor.sc:Lsun/nio/ch/SocketChannelImpl;
invokevirtual sun.nio.ch.SocketChannelImpl.isOpen:()Z
ifne 2
1: new java.net.SocketException
dup
ldc "Socket is closed"
invokespecial java.net.SocketException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.SocketAdaptor.sc:Lsun/nio/ch/SocketChannelImpl;
invokevirtual sun.nio.ch.SocketChannelImpl.isConnected:()Z
ifne 4
3: new java.net.SocketException
dup
ldc "Socket is not connected"
invokespecial java.net.SocketException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.SocketAdaptor.sc:Lsun/nio/ch/SocketChannelImpl;
invokevirtual sun.nio.ch.SocketChannelImpl.isInputOpen:()Z
ifne 6
5: new java.net.SocketException
dup
ldc "Socket input is shutdown"
invokespecial java.net.SocketException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.SocketAdaptor.socketInputStream:Ljava/io/InputStream;
ifnonnull 13
7: aload 0
8: new sun.nio.ch.SocketAdaptor$1
dup
aload 0
invokespecial sun.nio.ch.SocketAdaptor$1.<init>:(Lsun/nio/ch/SocketAdaptor;)V
9: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedExceptionAction;)Ljava/lang/Object;
checkcast java.io.InputStream
putfield sun.nio.ch.SocketAdaptor.socketInputStream:Ljava/io/InputStream;
10: goto 13
StackMap locals:
StackMap stack: java.security.PrivilegedActionException
11: astore 1
start local 1 12: aload 1
invokevirtual java.security.PrivilegedActionException.getException:()Ljava/lang/Exception;
checkcast java.io.IOException
athrow
end local 1 13: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.SocketAdaptor.socketInputStream:Ljava/io/InputStream;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lsun/nio/ch/SocketAdaptor;
12 13 1 e Ljava/security/PrivilegedActionException;
Exception table:
from to target type
7 10 11 Class java.security.PrivilegedActionException
Exceptions:
throws java.io.IOException
public java.io.OutputStream getOutputStream();
descriptor: ()Ljava/io/OutputStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.SocketAdaptor.sc:Lsun/nio/ch/SocketChannelImpl;
invokevirtual sun.nio.ch.SocketChannelImpl.isOpen:()Z
ifne 2
1: new java.net.SocketException
dup
ldc "Socket is closed"
invokespecial java.net.SocketException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.SocketAdaptor.sc:Lsun/nio/ch/SocketChannelImpl;
invokevirtual sun.nio.ch.SocketChannelImpl.isConnected:()Z
ifne 4
3: new java.net.SocketException
dup
ldc "Socket is not connected"
invokespecial java.net.SocketException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.SocketAdaptor.sc:Lsun/nio/ch/SocketChannelImpl;
invokevirtual sun.nio.ch.SocketChannelImpl.isOutputOpen:()Z
ifne 6
5: new java.net.SocketException
dup
ldc "Socket output is shutdown"
invokespecial java.net.SocketException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
aconst_null
astore 1
start local 1 7: new sun.nio.ch.SocketAdaptor$2
dup
aload 0
invokespecial sun.nio.ch.SocketAdaptor$2.<init>:(Lsun/nio/ch/SocketAdaptor;)V
8: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedExceptionAction;)Ljava/lang/Object;
checkcast java.io.OutputStream
astore 1
9: goto 12
StackMap locals: sun.nio.ch.SocketAdaptor java.io.OutputStream
StackMap stack: java.security.PrivilegedActionException
10: astore 2
start local 2 11: aload 2
invokevirtual java.security.PrivilegedActionException.getException:()Ljava/lang/Exception;
checkcast java.io.IOException
athrow
end local 2 12: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lsun/nio/ch/SocketAdaptor;
7 13 1 os Ljava/io/OutputStream;
11 12 2 e Ljava/security/PrivilegedActionException;
Exception table:
from to target type
7 9 10 Class java.security.PrivilegedActionException
Exceptions:
throws java.io.IOException
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.SocketAdaptor.opts:Lsun/nio/ch/OptionAdaptor;
ifnonnull 2
1: aload 0
new sun.nio.ch.OptionAdaptor
dup
aload 0
getfield sun.nio.ch.SocketAdaptor.sc:Lsun/nio/ch/SocketChannelImpl;
invokespecial sun.nio.ch.OptionAdaptor.<init>:(Lsun/nio/ch/SocketChannelImpl;)V
putfield sun.nio.ch.SocketAdaptor.opts:Lsun/nio/ch/OptionAdaptor;
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.SocketAdaptor.opts:Lsun/nio/ch/OptionAdaptor;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/nio/ch/SocketAdaptor;
public void setTcpNoDelay(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.SocketAdaptor.opts:()Lsun/nio/ch/OptionAdaptor;
iload 1
invokevirtual sun.nio.ch.OptionAdaptor.setTcpNoDelay:(Z)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/nio/ch/SocketAdaptor;
0 2 1 on Z
Exceptions:
throws java.net.SocketException
MethodParameters:
Name Flags
on
public boolean getTcpNoDelay();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual sun.nio.ch.SocketAdaptor.opts:()Lsun/nio/ch/OptionAdaptor;
invokevirtual sun.nio.ch.OptionAdaptor.getTcpNoDelay:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/SocketAdaptor;
Exceptions:
throws java.net.SocketException
public void setSoLinger(boolean, int);
descriptor: (ZI)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual sun.nio.ch.SocketAdaptor.opts:()Lsun/nio/ch/OptionAdaptor;
iload 1
iload 2
invokevirtual sun.nio.ch.OptionAdaptor.setSoLinger:(ZI)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/nio/ch/SocketAdaptor;
0 2 1 on Z
0 2 2 linger I
Exceptions:
throws java.net.SocketException
MethodParameters:
Name Flags
on
linger
public int getSoLinger();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual sun.nio.ch.SocketAdaptor.opts:()Lsun/nio/ch/OptionAdaptor;
invokevirtual sun.nio.ch.OptionAdaptor.getSoLinger:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/SocketAdaptor;
Exceptions:
throws java.net.SocketException
public void sendUrgentData(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: new java.net.SocketException
dup
ldc "Urgent data not supported"
invokespecial java.net.SocketException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/SocketAdaptor;
0 1 1 data I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
data
public void setOOBInline(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.SocketAdaptor.opts:()Lsun/nio/ch/OptionAdaptor;
iload 1
invokevirtual sun.nio.ch.OptionAdaptor.setOOBInline:(Z)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/nio/ch/SocketAdaptor;
0 2 1 on Z
Exceptions:
throws java.net.SocketException
MethodParameters:
Name Flags
on
public boolean getOOBInline();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual sun.nio.ch.SocketAdaptor.opts:()Lsun/nio/ch/OptionAdaptor;
invokevirtual sun.nio.ch.OptionAdaptor.getOOBInline:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/SocketAdaptor;
Exceptions:
throws java.net.SocketException
public void setSoTimeout(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
ifge 2
1: new java.lang.IllegalArgumentException
dup
ldc "timeout can't be negative"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
iload 1
putfield sun.nio.ch.SocketAdaptor.timeout:I
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/nio/ch/SocketAdaptor;
0 4 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.SocketAdaptor.timeout:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/SocketAdaptor;
Exceptions:
throws java.net.SocketException
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.SocketAdaptor.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/SocketAdaptor;
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.SocketAdaptor.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/SocketAdaptor;
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.SocketAdaptor.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/SocketAdaptor;
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.SocketAdaptor.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/SocketAdaptor;
Exceptions:
throws java.net.SocketException
public void setKeepAlive(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.SocketAdaptor.opts:()Lsun/nio/ch/OptionAdaptor;
iload 1
invokevirtual sun.nio.ch.OptionAdaptor.setKeepAlive:(Z)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/nio/ch/SocketAdaptor;
0 2 1 on Z
Exceptions:
throws java.net.SocketException
MethodParameters:
Name Flags
on
public boolean getKeepAlive();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual sun.nio.ch.SocketAdaptor.opts:()Lsun/nio/ch/OptionAdaptor;
invokevirtual sun.nio.ch.OptionAdaptor.getKeepAlive:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/SocketAdaptor;
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.SocketAdaptor.opts:()Lsun/nio/ch/OptionAdaptor;
iload 1
invokevirtual sun.nio.ch.OptionAdaptor.setTrafficClass:(I)V
1: aload 0
iload 1
putfield sun.nio.ch.SocketAdaptor.trafficClass:I
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/nio/ch/SocketAdaptor;
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.SocketAdaptor.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.SocketAdaptor.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/SocketAdaptor;
1 4 1 tc I
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.SocketAdaptor.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/SocketAdaptor;
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.SocketAdaptor.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/SocketAdaptor;
Exceptions:
throws java.net.SocketException
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.SocketAdaptor.sc:Lsun/nio/ch/SocketChannelImpl;
invokevirtual sun.nio.ch.SocketChannelImpl.close:()V
1: goto 4
StackMap locals:
StackMap stack: java.lang.Exception
2: astore 1
start local 1 3: aload 1
invokestatic sun.nio.ch.Net.translateToSocketException:(Ljava/lang/Exception;)V
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/SocketAdaptor;
3 4 1 x Ljava/lang/Exception;
Exception table:
from to target type
0 1 2 Class java.lang.Exception
Exceptions:
throws java.io.IOException
public void shutdownInput();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.SocketAdaptor.sc:Lsun/nio/ch/SocketChannelImpl;
invokevirtual sun.nio.ch.SocketChannelImpl.shutdownInput:()V
1: goto 4
StackMap locals:
StackMap stack: java.lang.Exception
2: astore 1
start local 1 3: aload 1
invokestatic sun.nio.ch.Net.translateException:(Ljava/lang/Exception;)V
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/SocketAdaptor;
3 4 1 x Ljava/lang/Exception;
Exception table:
from to target type
0 1 2 Class java.lang.Exception
Exceptions:
throws java.io.IOException
public void shutdownOutput();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.SocketAdaptor.sc:Lsun/nio/ch/SocketChannelImpl;
invokevirtual sun.nio.ch.SocketChannelImpl.shutdownOutput:()V
1: goto 4
StackMap locals:
StackMap stack: java.lang.Exception
2: astore 1
start local 1 3: aload 1
invokestatic sun.nio.ch.Net.translateException:(Ljava/lang/Exception;)V
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/SocketAdaptor;
3 4 1 x Ljava/lang/Exception;
Exception table:
from to target type
0 1 2 Class java.lang.Exception
Exceptions:
throws java.io.IOException
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.SocketAdaptor.sc:Lsun/nio/ch/SocketChannelImpl;
invokevirtual sun.nio.ch.SocketChannelImpl.isConnected:()Z
ifeq 5
1: new java.lang.StringBuilder
dup
ldc "Socket[addr="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual sun.nio.ch.SocketAdaptor.getInetAddress:()Ljava/net/InetAddress;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
2: ldc ",port="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual sun.nio.ch.SocketAdaptor.getPort:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
3: ldc ",localport="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual sun.nio.ch.SocketAdaptor.getLocalPort:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc "]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
4: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
5: StackMap locals:
StackMap stack:
ldc "Socket[unconnected]"
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/nio/ch/SocketAdaptor;
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.SocketAdaptor.sc:Lsun/nio/ch/SocketChannelImpl;
invokevirtual sun.nio.ch.SocketChannelImpl.isConnected:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/SocketAdaptor;
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.SocketAdaptor.sc:Lsun/nio/ch/SocketChannelImpl;
invokevirtual sun.nio.ch.SocketChannelImpl.isBound:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/SocketAdaptor;
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.SocketAdaptor.sc:Lsun/nio/ch/SocketChannelImpl;
invokevirtual sun.nio.ch.SocketChannelImpl.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/SocketAdaptor;
public boolean isInputShutdown();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.SocketAdaptor.sc:Lsun/nio/ch/SocketChannelImpl;
invokevirtual sun.nio.ch.SocketChannelImpl.isInputOpen:()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/SocketAdaptor;
public boolean isOutputShutdown();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.SocketAdaptor.sc:Lsun/nio/ch/SocketChannelImpl;
invokevirtual sun.nio.ch.SocketChannelImpl.isOutputOpen:()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/SocketAdaptor;
}
SourceFile: "SocketAdaptor.java"
NestMembers:
sun.nio.ch.SocketAdaptor$1 sun.nio.ch.SocketAdaptor$2 sun.nio.ch.SocketAdaptor$SocketInputStream
InnerClasses:
sun.nio.ch.SocketAdaptor$1
sun.nio.ch.SocketAdaptor$2
private SocketInputStream = sun.nio.ch.SocketAdaptor$SocketInputStream of sun.nio.ch.SocketAdaptor