public abstract class java.net.SocketImpl implements java.net.SocketOptions
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: java.net.SocketImpl
super_class: java.lang.Object
{
private static final boolean USE_PLAINSOCKETIMPL;
descriptor: Z
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
protected java.io.FileDescriptor fd;
descriptor: Ljava/io/FileDescriptor;
flags: (0x0004) ACC_PROTECTED
protected java.net.InetAddress address;
descriptor: Ljava/net/InetAddress;
flags: (0x0004) ACC_PROTECTED
protected int port;
descriptor: I
flags: (0x0004) ACC_PROTECTED
protected int localport;
descriptor: I
flags: (0x0004) ACC_PROTECTED
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: invokestatic java.net.SocketImpl.usePlainSocketImpl:()Z
putstatic java.net.SocketImpl.USE_PLAINSOCKETIMPL:Z
return
LocalVariableTable:
Start End Slot Name Signature
private static boolean usePlainSocketImpl();
descriptor: ()Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=0
0: invokedynamic run()Ljava/security/PrivilegedAction;
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;
java/net/SocketImpl.lambda$0()Ljava/lang/String; (6)
()Ljava/lang/String;
astore 0
start local 0 1: aload 0
invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.String
astore 1
start local 1 2: aload 1
ifnull 3
aload 1
ldc "false"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifne 3
iconst_1
ireturn
StackMap locals: java.security.PrivilegedAction java.lang.String
StackMap stack:
3: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
1 4 0 pa Ljava/security/PrivilegedAction<Ljava/lang/String;>;
2 4 1 s Ljava/lang/String;
static <S extends java.net.SocketImpl extends sun.net.PlatformSocketImpl> S createPlatformSocketImpl();
descriptor: (Z)Ljava/net/SocketImpl;
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: getstatic java.net.SocketImpl.USE_PLAINSOCKETIMPL:Z
ifeq 2
1: new java.net.PlainSocketImpl
dup
iload 0
invokespecial java.net.PlainSocketImpl.<init>:(Z)V
areturn
2: StackMap locals:
StackMap stack:
new sun.nio.ch.NioSocketImpl
dup
iload 0
invokespecial sun.nio.ch.NioSocketImpl.<init>:(Z)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 server Z
Signature: <S:Ljava/net/SocketImpl;:Lsun/net/PlatformSocketImpl;>(Z)TS;
MethodParameters:
Name Flags
server
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/net/SocketImpl;
protected abstract void create(boolean);
descriptor: (Z)V
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
stream
protected abstract void connect(java.lang.String, int);
descriptor: (Ljava/lang/String;I)V
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
host
port
protected abstract void connect(java.net.InetAddress, int);
descriptor: (Ljava/net/InetAddress;I)V
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
address
port
protected abstract void connect(java.net.SocketAddress, int);
descriptor: (Ljava/net/SocketAddress;I)V
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
address
timeout
protected abstract void bind(java.net.InetAddress, int);
descriptor: (Ljava/net/InetAddress;I)V
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
host
port
protected abstract void listen(int);
descriptor: (I)V
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
backlog
protected abstract void accept(java.net.SocketImpl);
descriptor: (Ljava/net/SocketImpl;)V
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
s
protected abstract java.io.InputStream getInputStream();
descriptor: ()Ljava/io/InputStream;
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
Exceptions:
throws java.io.IOException
protected abstract java.io.OutputStream getOutputStream();
descriptor: ()Ljava/io/OutputStream;
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
Exceptions:
throws java.io.IOException
protected abstract int available();
descriptor: ()I
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
Exceptions:
throws java.io.IOException
protected abstract void close();
descriptor: ()V
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
Exceptions:
throws java.io.IOException
void closeQuietly();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.net.SocketImpl.close:()V
1: goto 3
StackMap locals:
StackMap stack: java.io.IOException
2: pop
3: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljava/net/SocketImpl;
Exception table:
from to target type
0 1 2 Class java.io.IOException
protected void shutdownInput();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.io.IOException
dup
ldc "Method not implemented!"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/net/SocketImpl;
Exceptions:
throws java.io.IOException
protected void shutdownOutput();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.io.IOException
dup
ldc "Method not implemented!"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/net/SocketImpl;
Exceptions:
throws java.io.IOException
protected java.io.FileDescriptor getFileDescriptor();
descriptor: ()Ljava/io/FileDescriptor;
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield java.net.SocketImpl.fd:Ljava/io/FileDescriptor;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/net/SocketImpl;
protected java.net.InetAddress getInetAddress();
descriptor: ()Ljava/net/InetAddress;
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield java.net.SocketImpl.address:Ljava/net/InetAddress;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/net/SocketImpl;
protected int getPort();
descriptor: ()I
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield java.net.SocketImpl.port:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/net/SocketImpl;
protected boolean supportsUrgentData();
descriptor: ()Z
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/net/SocketImpl;
protected abstract void sendUrgentData(int);
descriptor: (I)V
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
data
protected int getLocalPort();
descriptor: ()I
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield java.net.SocketImpl.localport:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/net/SocketImpl;
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: new java.lang.StringBuilder
dup
ldc "Socket[addr="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.net.SocketImpl.getInetAddress:()Ljava/net/InetAddress;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
1: ldc ",port="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual java.net.SocketImpl.getPort:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ",localport="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual java.net.SocketImpl.getLocalPort:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc "]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
2: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljava/net/SocketImpl;
void reset();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aconst_null
putfield java.net.SocketImpl.fd:Ljava/io/FileDescriptor;
1: aload 0
aconst_null
putfield java.net.SocketImpl.address:Ljava/net/InetAddress;
2: aload 0
iconst_0
putfield java.net.SocketImpl.port:I
3: aload 0
iconst_0
putfield java.net.SocketImpl.localport:I
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljava/net/SocketImpl;
protected void setPerformancePreferences(int, int, int);
descriptor: (III)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=0, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/net/SocketImpl;
0 1 1 connectionTime I
0 1 2 latency I
0 1 3 bandwidth I
MethodParameters:
Name Flags
connectionTime
latency
bandwidth
protected <T> void setOption(java.net.SocketOption<T>, );
descriptor: (Ljava/net/SocketOption;Ljava/lang/Object;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: new java.lang.UnsupportedOperationException
dup
new java.lang.StringBuilder
dup
ldc "'"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "' not supported"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/net/SocketImpl;
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;)V
MethodParameters:
Name Flags
name
value
protected <T> T getOption(java.net.SocketOption<T>);
descriptor: (Ljava/net/SocketOption;)Ljava/lang/Object;
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: new java.lang.UnsupportedOperationException
dup
new java.lang.StringBuilder
dup
ldc "'"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "' not supported"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/net/SocketImpl;
0 2 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
void copyOptionsTo(java.net.SocketImpl);
descriptor: (Ljava/net/SocketImpl;)V
flags: (0x0000)
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
sipush 4102
invokevirtual java.net.SocketImpl.getOption:(I)Ljava/lang/Object;
astore 2
start local 2 1: aload 2
instanceof java.lang.Integer
ifeq 5
2: aload 1
sipush 4102
aload 2
invokevirtual java.net.SocketImpl.setOption:(ILjava/lang/Object;)V
end local 2 3: goto 5
StackMap locals:
StackMap stack: java.io.IOException
4: pop
5: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljava/net/SocketImpl;
0 6 1 target Ljava/net/SocketImpl;
1 3 2 timeout Ljava/lang/Object;
Exception table:
from to target type
0 3 4 Class java.io.IOException
MethodParameters:
Name Flags
target
protected java.util.Set<java.net.SocketOption<?>> supportedOptions();
descriptor: ()Ljava/util/Set;
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: invokestatic java.util.Set.of:()Ljava/util/Set;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/net/SocketImpl;
Signature: ()Ljava/util/Set<Ljava/net/SocketOption<*>;>;
private static java.lang.String lambda$0();
descriptor: ()Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=0, args_size=0
0: ldc "jdk.net.usePlainSocketImpl"
invokestatic sun.net.NetProperties.get:(Ljava/lang/String;)Ljava/lang/String;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "SocketImpl.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles