class sun.nio.ch.ServerSocketAdaptor extends java.net.ServerSocket
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.nio.ch.ServerSocketAdaptor
super_class: java.net.ServerSocket
{
private final sun.nio.ch.ServerSocketChannelImpl ssc;
descriptor: Lsun/nio/ch/ServerSocketChannelImpl;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private volatile int timeout;
descriptor: I
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lsun/nio/ch/ServerSocketAdaptor;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic sun.nio.ch.ServerSocketAdaptor.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
public static java.net.ServerSocket create(sun.nio.ch.ServerSocketChannelImpl);
descriptor: (Lsun/nio/ch/ServerSocketChannelImpl;)Ljava/net/ServerSocket;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: new sun.nio.ch.ServerSocketAdaptor
dup
aload 0
invokespecial sun.nio.ch.ServerSocketAdaptor.<init>:(Lsun/nio/ch/ServerSocketChannelImpl;)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 ssc Lsun/nio/ch/ServerSocketChannelImpl;
3 4 1 x Ljava/io/IOException;
Exception table:
from to target type
0 1 2 Class java.io.IOException
MethodParameters:
Name Flags
ssc
private void <init>(sun.nio.ch.ServerSocketChannelImpl);
descriptor: (Lsun/nio/ch/ServerSocketChannelImpl;)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.ServerSocket.<init>:()V
1: aload 0
aload 1
putfield sun.nio.ch.ServerSocketAdaptor.ssc:Lsun/nio/ch/ServerSocketChannelImpl;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/nio/ch/ServerSocketAdaptor;
0 3 1 ssc Lsun/nio/ch/ServerSocketChannelImpl;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
ssc
public void bind(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
bipush 50
invokevirtual sun.nio.ch.ServerSocketAdaptor.bind:(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/ServerSocketAdaptor;
0 2 1 local Ljava/net/SocketAddress;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
local
public void bind(java.net.SocketAddress, int);
descriptor: (Ljava/net/SocketAddress;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 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.ServerSocketAdaptor.ssc:Lsun/nio/ch/ServerSocketChannelImpl;
aload 1
iload 2
invokevirtual sun.nio.ch.ServerSocketChannelImpl.bind:(Ljava/net/SocketAddress;I)Ljava/nio/channels/ServerSocketChannel;
pop
3: goto 6
StackMap locals:
StackMap stack: java.lang.Exception
4: astore 3
start local 3 5: aload 3
invokestatic sun.nio.ch.Net.translateException:(Ljava/lang/Exception;)V
end local 3 6: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/nio/ch/ServerSocketAdaptor;
0 7 1 local Ljava/net/SocketAddress;
0 7 2 backlog I
5 6 3 x Ljava/lang/Exception;
Exception table:
from to target type
2 3 4 Class java.lang.Exception
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
local
backlog
public java.net.InetAddress getInetAddress();
descriptor: ()Ljava/net/InetAddress;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.ServerSocketAdaptor.ssc:Lsun/nio/ch/ServerSocketChannelImpl;
invokevirtual sun.nio.ch.ServerSocketChannelImpl.localAddress:()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
invokestatic sun.nio.ch.Net.getRevealedLocalAddress:(Ljava/net/InetSocketAddress;)Ljava/net/InetSocketAddress;
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/ServerSocketAdaptor;
1 4 1 local 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
getfield sun.nio.ch.ServerSocketAdaptor.ssc:Lsun/nio/ch/ServerSocketChannelImpl;
invokevirtual sun.nio.ch.ServerSocketChannelImpl.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/ServerSocketAdaptor;
1 4 1 local Ljava/net/InetSocketAddress;
public java.net.Socket accept();
descriptor: ()Ljava/net/Socket;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=6, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.ServerSocketAdaptor.ssc:Lsun/nio/ch/ServerSocketChannelImpl;
invokevirtual sun.nio.ch.ServerSocketChannelImpl.blockingLock:()Ljava/lang/Object;
dup
astore 1
monitorenter
1: aload 0
getfield sun.nio.ch.ServerSocketAdaptor.ssc:Lsun/nio/ch/ServerSocketChannelImpl;
invokevirtual sun.nio.ch.ServerSocketChannelImpl.isBound:()Z
ifne 3
2: new java.nio.channels.NotYetBoundException
dup
invokespecial java.nio.channels.NotYetBoundException.<init>:()V
athrow
3: StackMap locals: java.lang.Object
StackMap stack:
aload 0
getfield sun.nio.ch.ServerSocketAdaptor.timeout:I
i2l
lstore 2
start local 2 4: lload 2
lconst_0
lcmp
ifne 11
5: aload 0
getfield sun.nio.ch.ServerSocketAdaptor.ssc:Lsun/nio/ch/ServerSocketChannelImpl;
invokevirtual sun.nio.ch.ServerSocketChannelImpl.accept:()Ljava/nio/channels/SocketChannel;
astore 4
start local 4 6: aload 4
ifnonnull 8
aload 0
getfield sun.nio.ch.ServerSocketAdaptor.ssc:Lsun/nio/ch/ServerSocketChannelImpl;
invokevirtual sun.nio.ch.ServerSocketChannelImpl.isBlocking:()Z
ifne 8
7: new java.nio.channels.IllegalBlockingModeException
dup
invokespecial java.nio.channels.IllegalBlockingModeException.<init>:()V
athrow
8: StackMap locals: long java.nio.channels.SocketChannel
StackMap stack:
aload 4
invokevirtual java.nio.channels.SocketChannel.socket:()Ljava/net/Socket;
9: aload 1
monitorexit
10: areturn
end local 4 11: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.ServerSocketAdaptor.ssc:Lsun/nio/ch/ServerSocketChannelImpl;
invokevirtual sun.nio.ch.ServerSocketChannelImpl.isBlocking:()Z
ifne 13
12: new java.nio.channels.IllegalBlockingModeException
dup
invokespecial java.nio.channels.IllegalBlockingModeException.<init>:()V
athrow
13: StackMap locals:
StackMap stack:
invokestatic java.lang.System.currentTimeMillis:()J
lstore 4
start local 4 14: aload 0
getfield sun.nio.ch.ServerSocketAdaptor.ssc:Lsun/nio/ch/ServerSocketChannelImpl;
lload 2
invokevirtual sun.nio.ch.ServerSocketChannelImpl.pollAccept:(J)Z
ifeq 18
15: aload 0
getfield sun.nio.ch.ServerSocketAdaptor.ssc:Lsun/nio/ch/ServerSocketChannelImpl;
invokevirtual sun.nio.ch.ServerSocketChannelImpl.accept:()Ljava/nio/channels/SocketChannel;
invokevirtual java.nio.channels.SocketChannel.socket:()Ljava/net/Socket;
16: aload 1
monitorexit
17: areturn
18: StackMap locals: long
StackMap stack:
lload 2
invokestatic java.lang.System.currentTimeMillis:()J
lload 4
lsub
lsub
lstore 2
19: lload 2
lconst_0
lcmp
ifgt 13
20: new java.net.SocketTimeoutException
dup
invokespecial java.net.SocketTimeoutException.<init>:()V
athrow
end local 4 end local 2 21: StackMap locals: sun.nio.ch.ServerSocketAdaptor java.lang.Object
StackMap stack: java.lang.Exception
astore 2
start local 2 22: aload 2
invokestatic sun.nio.ch.Net.translateException:(Ljava/lang/Exception;)V
23: getstatic sun.nio.ch.ServerSocketAdaptor.$assertionsDisabled:Z
ifne 24
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
24: StackMap locals: java.lang.Exception
StackMap stack:
aload 1
monitorexit
25: aconst_null
areturn
end local 2 26: StackMap locals: sun.nio.ch.ServerSocketAdaptor java.lang.Object
StackMap stack: java.lang.Throwable
aload 1
monitorexit
27: athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 28 0 this Lsun/nio/ch/ServerSocketAdaptor;
4 21 2 to J
6 11 4 sc Ljava/nio/channels/SocketChannel;
14 21 4 st J
22 26 2 x Ljava/lang/Exception;
Exception table:
from to target type
1 9 21 Class java.lang.Exception
11 16 21 Class java.lang.Exception
18 21 21 Class java.lang.Exception
1 10 26 any
11 17 26 any
18 25 26 any
26 27 26 any
Exceptions:
throws java.io.IOException
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.ServerSocketAdaptor.ssc:Lsun/nio/ch/ServerSocketChannelImpl;
invokevirtual sun.nio.ch.ServerSocketChannelImpl.close:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/nio/ch/ServerSocketAdaptor;
Exceptions:
throws java.io.IOException
public java.nio.channels.ServerSocketChannel getChannel();
descriptor: ()Ljava/nio/channels/ServerSocketChannel;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.ServerSocketAdaptor.ssc:Lsun/nio/ch/ServerSocketChannelImpl;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/ServerSocketAdaptor;
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.ServerSocketAdaptor.ssc:Lsun/nio/ch/ServerSocketChannelImpl;
invokevirtual sun.nio.ch.ServerSocketChannelImpl.isBound:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/ServerSocketAdaptor;
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.ServerSocketAdaptor.ssc:Lsun/nio/ch/ServerSocketChannelImpl;
invokevirtual sun.nio.ch.ServerSocketChannelImpl.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/ServerSocketAdaptor;
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.ServerSocketAdaptor.timeout:I
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/nio/ch/ServerSocketAdaptor;
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.ServerSocketAdaptor.timeout:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/ServerSocketAdaptor;
Exceptions:
throws java.net.SocketException
public void setReuseAddress(boolean);
descriptor: (Z)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.ServerSocketAdaptor.ssc:Lsun/nio/ch/ServerSocketChannelImpl;
getstatic java.net.StandardSocketOptions.SO_REUSEADDR:Ljava/net/SocketOption;
iload 1
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
invokevirtual sun.nio.ch.ServerSocketChannelImpl.setOption:(Ljava/net/SocketOption;Ljava/lang/Object;)Ljava/nio/channels/ServerSocketChannel;
pop
1: goto 4
StackMap locals:
StackMap stack: java.io.IOException
2: astore 2
start local 2 3: aload 2
invokestatic sun.nio.ch.Net.translateToSocketException:(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/ServerSocketAdaptor;
0 5 1 on Z
3 4 2 x Ljava/io/IOException;
Exception table:
from to target type
0 1 2 Class java.io.IOException
Exceptions:
throws java.net.SocketException
MethodParameters:
Name Flags
on
public boolean getReuseAddress();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.ServerSocketAdaptor.ssc:Lsun/nio/ch/ServerSocketChannelImpl;
getstatic java.net.StandardSocketOptions.SO_REUSEADDR:Ljava/net/SocketOption;
invokevirtual sun.nio.ch.ServerSocketChannelImpl.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 1
start local 1 3: aload 1
invokestatic sun.nio.ch.Net.translateToSocketException:(Ljava/lang/Exception;)V
4: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/nio/ch/ServerSocketAdaptor;
3 5 1 x Ljava/io/IOException;
Exception table:
from to target type
0 1 2 Class java.io.IOException
Exceptions:
throws java.net.SocketException
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
invokevirtual sun.nio.ch.ServerSocketAdaptor.isBound:()Z
ifne 2
1: ldc "ServerSocket[unbound]"
areturn
2: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
ldc "ServerSocket[addr="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual sun.nio.ch.ServerSocketAdaptor.getInetAddress:()Ljava/net/InetAddress;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
3: ldc ",localport="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual sun.nio.ch.ServerSocketAdaptor.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
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/nio/ch/ServerSocketAdaptor;
public void setReceiveBufferSize(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: iload 1
ifgt 2
1: new java.lang.IllegalArgumentException
dup
ldc "size cannot be 0 or negative"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.ServerSocketAdaptor.ssc:Lsun/nio/ch/ServerSocketChannelImpl;
getstatic java.net.StandardSocketOptions.SO_RCVBUF:Ljava/net/SocketOption;
iload 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokevirtual sun.nio.ch.ServerSocketChannelImpl.setOption:(Ljava/net/SocketOption;Ljava/lang/Object;)Ljava/nio/channels/ServerSocketChannel;
pop
3: goto 6
StackMap locals:
StackMap stack: java.io.IOException
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/ServerSocketAdaptor;
0 7 1 size I
5 6 2 x Ljava/io/IOException;
Exception table:
from to target type
2 3 4 Class java.io.IOException
Exceptions:
throws java.net.SocketException
MethodParameters:
Name Flags
size
public int getReceiveBufferSize();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.ServerSocketAdaptor.ssc:Lsun/nio/ch/ServerSocketChannelImpl;
getstatic java.net.StandardSocketOptions.SO_RCVBUF:Ljava/net/SocketOption;
invokevirtual sun.nio.ch.ServerSocketChannelImpl.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 1
start local 1 3: aload 1
invokestatic sun.nio.ch.Net.translateToSocketException:(Ljava/lang/Exception;)V
4: iconst_m1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/nio/ch/ServerSocketAdaptor;
3 5 1 x Ljava/io/IOException;
Exception table:
from to target type
0 1 2 Class java.io.IOException
Exceptions:
throws java.net.SocketException
}
SourceFile: "ServerSocketAdaptor.java"