class sun.nio.ch.SocketAdaptor extends java.net.Socket
minor version: 0
major version: 59
flags: flags: (0x0020) 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 int timeout;
descriptor: I
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
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
invokestatic sun.nio.ch.DummySocketImpl.create:()Ljava/net/SocketImpl;
invokespecial java.net.Socket.<init>:(Ljava/net/SocketImpl;)V
1: aload 0
aload 1
putfield sun.nio.ch.SocketAdaptor.sc:Lsun/nio/ch/SocketChannelImpl;
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 sc Lsun/nio/ch/SocketChannelImpl;
Exceptions:
throws java.net.SocketException
MethodParameters:
Name Flags
sc
static java.net.Socket create(sun.nio.ch.SocketChannelImpl);
descriptor: (Lsun/nio/ch/SocketChannelImpl;)Ljava/net/Socket;
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: aload 0
invokedynamic run(Lsun/nio/ch/SocketChannelImpl;)Ljava/security/PrivilegedExceptionAction;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/lang/Object;
sun/nio/ch/SocketAdaptor.lambda$0(Lsun/nio/ch/SocketChannelImpl;)Ljava/net/Socket; (6)
()Ljava/net/Socket;
astore 1
start local 1 1: aload 1
invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedExceptionAction;)Ljava/lang/Object;
checkcast java.net.Socket
2: areturn
3: StackMap locals: sun.nio.ch.SocketChannelImpl java.security.PrivilegedExceptionAction
StackMap stack: java.security.PrivilegedActionException
astore 2
start local 2 4: new java.lang.InternalError
dup
ldc "Should not reach here"
aload 2
invokespecial java.lang.InternalError.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 sc Lsun/nio/ch/SocketChannelImpl;
1 5 1 pa Ljava/security/PrivilegedExceptionAction<Ljava/net/Socket;>;
4 5 2 pae Ljava/security/PrivilegedActionException;
Exception table:
from to target type
1 2 3 Class java.security.PrivilegedActionException
MethodParameters:
Name Flags
sc
private java.net.InetSocketAddress localAddress();
descriptor: ()Ljava/net/InetSocketAddress;
flags: (0x0002) ACC_PRIVATE
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.localAddress:()Ljava/net/SocketAddress;
checkcast java.net.InetSocketAddress
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/SocketAdaptor;
private java.net.InetSocketAddress remoteAddress();
descriptor: ()Ljava/net/InetSocketAddress;
flags: (0x0002) ACC_PRIVATE
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.remoteAddress:()Ljava/net/SocketAddress;
checkcast java.net.InetSocketAddress
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=4, locals=5, 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:
iload 2
ifle 8
5: getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
iload 2
i2l
invokevirtual java.util.concurrent.TimeUnit.toNanos:(J)J
lstore 3
start local 3 6: aload 0
getfield sun.nio.ch.SocketAdaptor.sc:Lsun/nio/ch/SocketChannelImpl;
aload 1
lload 3
invokevirtual sun.nio.ch.SocketChannelImpl.blockingConnect:(Ljava/net/SocketAddress;J)V
end local 3 7: goto 12
8: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.SocketAdaptor.sc:Lsun/nio/ch/SocketChannelImpl;
aload 1
ldc 9223372036854775807
invokevirtual sun.nio.ch.SocketChannelImpl.blockingConnect:(Ljava/net/SocketAddress;J)V
9: goto 12
StackMap locals:
StackMap stack: java.lang.Exception
10: astore 3
start local 3 11: aload 3
iconst_1
invokestatic sun.nio.ch.Net.translateException:(Ljava/lang/Exception;Z)V
end local 3 12: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lsun/nio/ch/SocketAdaptor;
0 13 1 remote Ljava/net/SocketAddress;
0 13 2 timeout I
6 7 3 nanos J
11 12 3 e Ljava/lang/Exception;
Exception table:
from to target type
4 9 10 Class java.lang.Exception
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=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.nio.ch.SocketAdaptor.sc:Lsun/nio/ch/SocketChannelImpl;
aload 1
invokevirtual sun.nio.ch.SocketChannelImpl.bind:(Ljava/net/SocketAddress;)Ljava/nio/channels/SocketChannel;
pop
1: goto 4
StackMap locals:
StackMap stack: java.lang.Exception
2: astore 2
start local 2 3: aload 2
invokestatic sun.nio.ch.Net.translateException:(Ljava/lang/Exception;)V
end local 2 4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/nio/ch/SocketAdaptor;
0 5 1 local Ljava/net/SocketAddress;
3 4 2 x Ljava/lang/Exception;
Exception table:
from to target type
0 1 2 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=2, args_size=1
start local 0 0: aload 0
invokevirtual sun.nio.ch.SocketAdaptor.remoteAddress:()Ljava/net/InetSocketAddress;
astore 1
start local 1 1: aload 1
ifnonnull 3
2: aconst_null
areturn
3: StackMap locals: java.net.InetSocketAddress
StackMap stack:
aload 1
invokevirtual java.net.InetSocketAddress.getAddress:()Ljava/net/InetAddress;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/nio/ch/SocketAdaptor;
1 4 1 remote Ljava/net/InetSocketAddress;
public java.net.InetAddress getLocalAddress();
descriptor: ()Ljava/net/InetAddress;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, 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
ifeq 4
1: aload 0
invokevirtual sun.nio.ch.SocketAdaptor.localAddress:()Ljava/net/InetSocketAddress;
astore 1
start local 1 2: aload 1
ifnull 4
3: aload 1
invokestatic sun.nio.ch.Net.getRevealedLocalAddress:(Ljava/net/SocketAddress;)Ljava/net/InetSocketAddress;
invokevirtual java.net.InetSocketAddress.getAddress:()Ljava/net/InetAddress;
areturn
end local 1 4: StackMap locals:
StackMap stack:
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 5 0 this Lsun/nio/ch/SocketAdaptor;
2 4 1 local Ljava/net/InetSocketAddress;
public int getPort();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual sun.nio.ch.SocketAdaptor.remoteAddress:()Ljava/net/InetSocketAddress;
astore 1
start local 1 1: aload 1
ifnonnull 3
2: iconst_0
ireturn
3: StackMap locals: java.net.InetSocketAddress
StackMap stack:
aload 1
invokevirtual java.net.InetSocketAddress.getPort:()I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/nio/ch/SocketAdaptor;
1 4 1 remote Ljava/net/InetSocketAddress;
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.SocketAdaptor.localAddress:()Ljava/net/InetSocketAddress;
astore 1
start local 1 1: aload 1
ifnonnull 3
2: iconst_m1
ireturn
3: StackMap locals: java.net.InetSocketAddress
StackMap stack:
aload 1
invokevirtual java.net.InetSocketAddress.getPort:()I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/nio/ch/SocketAdaptor;
1 4 1 local Ljava/net/InetSocketAddress;
public java.net.SocketAddress getRemoteSocketAddress();
descriptor: ()Ljava/net/SocketAddress;
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.remoteAddress:()Ljava/net/SocketAddress;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/SocketAdaptor;
public java.net.SocketAddress getLocalSocketAddress();
descriptor: ()Ljava/net/SocketAddress;
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.localAddress:()Ljava/net/SocketAddress;
invokestatic sun.nio.ch.Net.getRevealedLocalAddress:(Ljava/net/SocketAddress;)Ljava/net/InetSocketAddress;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/SocketAdaptor;
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 java.io.InputStream getInputStream();
descriptor: ()Ljava/io/InputStream;
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.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:
new sun.nio.ch.SocketAdaptor$1
dup
aload 0
invokespecial sun.nio.ch.SocketAdaptor$1.<init>:(Lsun/nio/ch/SocketAdaptor;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/nio/ch/SocketAdaptor;
Exceptions:
throws java.io.IOException
public java.io.OutputStream getOutputStream();
descriptor: ()Ljava/io/OutputStream;
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.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:
new sun.nio.ch.SocketAdaptor$2
dup
aload 0
invokespecial sun.nio.ch.SocketAdaptor$2.<init>:(Lsun/nio/ch/SocketAdaptor;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/nio/ch/SocketAdaptor;
Exceptions:
throws java.io.IOException
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.SocketAdaptor.sc:Lsun/nio/ch/SocketChannelImpl;
aload 1
iload 2
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
invokevirtual sun.nio.ch.SocketChannelImpl.setOption:(Ljava/net/SocketOption;Ljava/lang/Object;)Ljava/nio/channels/SocketChannel;
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/SocketAdaptor;
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.SocketAdaptor.sc:Lsun/nio/ch/SocketChannelImpl;
aload 1
iload 2
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokevirtual sun.nio.ch.SocketChannelImpl.setOption:(Ljava/net/SocketOption;Ljava/lang/Object;)Ljava/nio/channels/SocketChannel;
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/SocketAdaptor;
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.SocketAdaptor.sc:Lsun/nio/ch/SocketChannelImpl;
aload 1
invokevirtual sun.nio.ch.SocketChannelImpl.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/SocketAdaptor;
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.SocketAdaptor.sc:Lsun/nio/ch/SocketChannelImpl;
aload 1
invokevirtual sun.nio.ch.SocketChannelImpl.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/SocketAdaptor;
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 setTcpNoDelay(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.TCP_NODELAY:Ljava/net/SocketOption;
iload 1
invokevirtual sun.nio.ch.SocketAdaptor.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/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=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic java.net.StandardSocketOptions.TCP_NODELAY:Ljava/net/SocketOption;
invokevirtual sun.nio.ch.SocketAdaptor.getBooleanOption:(Ljava/net/SocketOption;)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: iload 1
ifne 2
1: iconst_m1
istore 2
2: StackMap locals:
StackMap stack:
aload 0
getstatic java.net.StandardSocketOptions.SO_LINGER:Ljava/net/SocketOption;
iload 2
invokevirtual sun.nio.ch.SocketAdaptor.setIntOption:(Ljava/net/SocketOption;I)V
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/nio/ch/SocketAdaptor;
0 4 1 on Z
0 4 2 linger I
Exceptions:
throws java.net.SocketException
MethodParameters:
Name Flags
on
linger
public int getSoLinger();
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_LINGER:Ljava/net/SocketOption;
invokevirtual sun.nio.ch.SocketAdaptor.getIntOption:(Ljava/net/SocketOption;)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=3, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.nio.ch.SocketAdaptor.sc:Lsun/nio/ch/SocketChannelImpl;
iload 1
i2b
invokevirtual sun.nio.ch.SocketChannelImpl.sendOutOfBandData:(B)I
istore 2
start local 2 1: iload 2
ifne 3
2: new java.io.IOException
dup
ldc "Socket buffer full"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: int
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/SocketAdaptor;
0 4 1 data I
1 4 2 n I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
data
public void setOOBInline(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 sun.nio.ch.ExtendedSocketOption.SO_OOBINLINE:Ljava/net/SocketOption;
iload 1
invokevirtual sun.nio.ch.SocketAdaptor.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/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=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic sun.nio.ch.ExtendedSocketOption.SO_OOBINLINE:Ljava/net/SocketOption;
invokevirtual sun.nio.ch.SocketAdaptor.getBooleanOption:(Ljava/net/SocketOption;)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: 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:
iload 1
ifge 4
3: new java.lang.IllegalArgumentException
dup
ldc "timeout < 0"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
iload 1
putfield sun.nio.ch.SocketAdaptor.timeout:I
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/nio/ch/SocketAdaptor;
0 6 1 timeout I
Exceptions:
throws java.net.SocketException
MethodParameters:
Name Flags
timeout
public int getSoTimeout();
descriptor: ()I
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.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.timeout:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/nio/ch/SocketAdaptor;
Exceptions:
throws java.net.SocketException
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.SocketAdaptor.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/SocketAdaptor;
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.SocketAdaptor.getIntOption:(Ljava/net/SocketOption;)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=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.SocketAdaptor.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/SocketAdaptor;
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.SocketAdaptor.getIntOption:(Ljava/net/SocketOption;)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=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getstatic java.net.StandardSocketOptions.SO_KEEPALIVE:Ljava/net/SocketOption;
iload 1
invokevirtual sun.nio.ch.SocketAdaptor.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/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=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic java.net.StandardSocketOptions.SO_KEEPALIVE:Ljava/net/SocketOption;
invokevirtual sun.nio.ch.SocketAdaptor.getBooleanOption:(Ljava/net/SocketOption;)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=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.SocketAdaptor.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/SocketAdaptor;
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.SocketAdaptor.getIntOption:(Ljava/net/SocketOption;)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 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.SocketAdaptor.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/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=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.SocketAdaptor.getBooleanOption:(Ljava/net/SocketOption;)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=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.close:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/nio/ch/SocketAdaptor;
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:()Ljava/nio/channels/SocketChannel;
pop
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:()Ljava/nio/channels/SocketChannel;
pop
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.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/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;
public <T> java.net.Socket setOption(java.net.SocketOption<T>, T);
descriptor: (Ljava/net/SocketOption;Ljava/lang/Object;)Ljava/net/Socket;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield sun.nio.ch.SocketAdaptor.sc:Lsun/nio/ch/SocketChannelImpl;
aload 1
aload 2
invokevirtual sun.nio.ch.SocketChannelImpl.setOption:(Ljava/net/SocketOption;Ljava/lang/Object;)Ljava/nio/channels/SocketChannel;
pop
1: aload 0
areturn
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 name Ljava/net/SocketOption<TT;>;
0 2 2 value TT;
Exceptions:
throws java.io.IOException
Signature: <T:Ljava/lang/Object;>(Ljava/net/SocketOption<TT;>;TT;)Ljava/net/Socket;
MethodParameters:
Name Flags
name
value
public <T> T getOption(java.net.SocketOption<T>);
descriptor: (Ljava/net/SocketOption;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.nio.ch.SocketAdaptor.sc:Lsun/nio/ch/SocketChannelImpl;
aload 1
invokevirtual sun.nio.ch.SocketChannelImpl.getOption:(Ljava/net/SocketOption;)Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/SocketAdaptor;
0 1 1 name Ljava/net/SocketOption<TT;>;
Exceptions:
throws java.io.IOException
Signature: <T:Ljava/lang/Object;>(Ljava/net/SocketOption<TT;>;)TT;
MethodParameters:
Name Flags
name
public java.util.Set<java.net.SocketOption<?>> supportedOptions();
descriptor: ()Ljava/util/Set;
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.supportedOptions:()Ljava/util/Set;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/SocketAdaptor;
Signature: ()Ljava/util/Set<Ljava/net/SocketOption<*>;>;
private static java.net.Socket lambda$0(sun.nio.ch.SocketChannelImpl);
descriptor: (Lsun/nio/ch/SocketChannelImpl;)Ljava/net/Socket;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=1
0: new sun.nio.ch.SocketAdaptor
dup
aload 0
invokespecial sun.nio.ch.SocketAdaptor.<init>:(Lsun/nio/ch/SocketChannelImpl;)V
areturn
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws java.lang.Exception
}
SourceFile: "SocketAdaptor.java"
NestMembers:
sun.nio.ch.SocketAdaptor$1 sun.nio.ch.SocketAdaptor$2
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
sun.nio.ch.SocketAdaptor$1
sun.nio.ch.SocketAdaptor$2