public class sun.net.NetworkClient
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.net.NetworkClient
super_class: java.lang.Object
{
public static final int DEFAULT_READ_TIMEOUT;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: -1
public static final int DEFAULT_CONNECT_TIMEOUT;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: -1
protected java.net.Proxy proxy;
descriptor: Ljava/net/Proxy;
flags: (0x0004) ACC_PROTECTED
protected java.net.Socket serverSocket;
descriptor: Ljava/net/Socket;
flags: (0x0004) ACC_PROTECTED
public java.io.PrintStream serverOutput;
descriptor: Ljava/io/PrintStream;
flags: (0x0001) ACC_PUBLIC
public java.io.InputStream serverInput;
descriptor: Ljava/io/InputStream;
flags: (0x0001) ACC_PUBLIC
protected static int defaultSoTimeout;
descriptor: I
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
protected static int defaultConnectTimeout;
descriptor: I
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
protected int readTimeout;
descriptor: I
flags: (0x0004) ACC_PROTECTED
protected int connectTimeout;
descriptor: I
flags: (0x0004) ACC_PROTECTED
protected static java.lang.String encoding;
descriptor: Ljava/lang/String;
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=2, args_size=0
0: iconst_2
newarray 10
astore 0
start local 0 1: iconst_1
anewarray java.lang.String
astore 1
start local 1 2: new sun.net.NetworkClient$1
dup
aload 0
aload 1
invokespecial sun.net.NetworkClient$1.<init>:([I[Ljava/lang/String;)V
3: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
pop
4: aload 0
iconst_0
iaload
ifeq 6
5: aload 0
iconst_0
iaload
putstatic sun.net.NetworkClient.defaultSoTimeout:I
6: StackMap locals: int[] java.lang.String[]
StackMap stack:
aload 0
iconst_1
iaload
ifeq 8
7: aload 0
iconst_1
iaload
putstatic sun.net.NetworkClient.defaultConnectTimeout:I
8: StackMap locals:
StackMap stack:
aload 1
iconst_0
aaload
putstatic sun.net.NetworkClient.encoding:Ljava/lang/String;
9: getstatic sun.net.NetworkClient.encoding:Ljava/lang/String;
invokestatic sun.net.NetworkClient.isASCIISuperset:(Ljava/lang/String;)Z
ifne 14
10: ldc "ISO8859_1"
putstatic sun.net.NetworkClient.encoding:Ljava/lang/String;
11: goto 14
StackMap locals:
StackMap stack: java.lang.Exception
12: pop
13: ldc "ISO8859_1"
putstatic sun.net.NetworkClient.encoding:Ljava/lang/String;
end local 1 end local 0 14: StackMap locals:
StackMap stack:
return
LocalVariableTable:
Start End Slot Name Signature
1 14 0 vals [I
2 14 1 encs [Ljava/lang/String;
Exception table:
from to target type
9 11 12 Class java.lang.Exception
private static boolean isASCIISuperset(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=4, args_size=1
start local 0 0: ldc "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_.!~*'();/?:@&=+$,"
astore 1
start local 1 1: bipush 81
newarray 8
dup
iconst_0
bipush 48
bastore
dup
iconst_1
bipush 49
bastore
dup
iconst_2
bipush 50
bastore
dup
iconst_3
bipush 51
bastore
dup
iconst_4
bipush 52
bastore
dup
iconst_5
bipush 53
bastore
dup
bipush 6
bipush 54
bastore
dup
bipush 7
bipush 55
bastore
dup
bipush 8
bipush 56
bastore
dup
bipush 9
bipush 57
bastore
dup
bipush 10
bipush 65
bastore
dup
bipush 11
bipush 66
bastore
dup
bipush 12
bipush 67
bastore
dup
bipush 13
bipush 68
bastore
dup
bipush 14
bipush 69
bastore
dup
bipush 15
bipush 70
bastore
dup
bipush 16
bipush 71
bastore
dup
bipush 17
bipush 72
bastore
dup
bipush 18
2: bipush 73
bastore
dup
bipush 19
bipush 74
bastore
dup
bipush 20
bipush 75
bastore
dup
bipush 21
bipush 76
bastore
dup
bipush 22
bipush 77
bastore
dup
bipush 23
bipush 78
bastore
dup
bipush 24
bipush 79
bastore
dup
bipush 25
bipush 80
bastore
dup
bipush 26
bipush 81
bastore
dup
bipush 27
bipush 82
bastore
dup
bipush 28
bipush 83
bastore
dup
bipush 29
bipush 84
bastore
dup
bipush 30
bipush 85
bastore
dup
bipush 31
bipush 86
bastore
dup
bipush 32
bipush 87
bastore
dup
bipush 33
bipush 88
bastore
dup
bipush 34
bipush 89
bastore
dup
bipush 35
bipush 90
bastore
dup
bipush 36
bipush 97
bastore
dup
bipush 37
bipush 98
bastore
dup
bipush 38
bipush 99
bastore
dup
bipush 39
3: bipush 100
bastore
dup
bipush 40
bipush 101
bastore
dup
bipush 41
bipush 102
bastore
dup
bipush 42
bipush 103
bastore
dup
bipush 43
bipush 104
bastore
dup
bipush 44
bipush 105
bastore
dup
bipush 45
bipush 106
bastore
dup
bipush 46
bipush 107
bastore
dup
bipush 47
bipush 108
bastore
dup
bipush 48
bipush 109
bastore
dup
bipush 49
bipush 110
bastore
dup
bipush 50
bipush 111
bastore
dup
bipush 51
bipush 112
bastore
dup
bipush 52
bipush 113
bastore
dup
bipush 53
bipush 114
bastore
dup
bipush 54
4: bipush 115
bastore
dup
bipush 55
bipush 116
bastore
dup
bipush 56
bipush 117
bastore
dup
bipush 57
bipush 118
bastore
dup
bipush 58
bipush 119
bastore
dup
bipush 59
bipush 120
bastore
dup
bipush 60
bipush 121
bastore
dup
bipush 61
bipush 122
bastore
dup
bipush 62
bipush 45
bastore
dup
bipush 63
bipush 95
bastore
dup
bipush 64
bipush 46
bastore
dup
bipush 65
bipush 33
bastore
dup
bipush 66
bipush 126
bastore
dup
bipush 67
bipush 42
bastore
dup
bipush 68
bipush 39
bastore
dup
bipush 69
bipush 40
bastore
dup
bipush 70
bipush 41
bastore
dup
bipush 71
bipush 59
bastore
dup
bipush 72
5: bipush 47
bastore
dup
bipush 73
bipush 63
bastore
dup
bipush 74
bipush 58
bastore
dup
bipush 75
bipush 64
bastore
dup
bipush 76
bipush 38
bastore
dup
bipush 77
bipush 61
bastore
dup
bipush 78
bipush 43
bastore
dup
bipush 79
bipush 36
bastore
dup
bipush 80
bipush 44
bastore
6: astore 2
start local 2 7: aload 1
aload 0
invokevirtual java.lang.String.getBytes:(Ljava/lang/String;)[B
astore 3
start local 3 8: aload 3
aload 2
invokestatic java.util.Arrays.equals:([B[B)Z
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 encoding Ljava/lang/String;
1 9 1 chkS Ljava/lang/String;
7 9 2 chkB [B
8 9 3 b [B
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
encoding
public void openServer(java.lang.String, int);
descriptor: (Ljava/lang/String;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield sun.net.NetworkClient.serverSocket:Ljava/net/Socket;
ifnull 2
1: aload 0
invokevirtual sun.net.NetworkClient.closeServer:()V
2: StackMap locals:
StackMap stack:
aload 0
aload 0
aload 1
iload 2
invokevirtual sun.net.NetworkClient.doConnect:(Ljava/lang/String;I)Ljava/net/Socket;
putfield sun.net.NetworkClient.serverSocket:Ljava/net/Socket;
3: aload 0
new java.io.PrintStream
dup
new java.io.BufferedOutputStream
dup
4: aload 0
getfield sun.net.NetworkClient.serverSocket:Ljava/net/Socket;
invokevirtual java.net.Socket.getOutputStream:()Ljava/io/OutputStream;
invokespecial java.io.BufferedOutputStream.<init>:(Ljava/io/OutputStream;)V
5: iconst_1
getstatic sun.net.NetworkClient.encoding:Ljava/lang/String;
invokespecial java.io.PrintStream.<init>:(Ljava/io/OutputStream;ZLjava/lang/String;)V
6: putfield sun.net.NetworkClient.serverOutput:Ljava/io/PrintStream;
7: goto 10
StackMap locals:
StackMap stack: java.io.UnsupportedEncodingException
8: astore 3
start local 3 9: new java.lang.InternalError
dup
new java.lang.StringBuilder
dup
getstatic sun.net.NetworkClient.encoding:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "encoding not found"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 3
invokespecial java.lang.InternalError.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 3 10: StackMap locals:
StackMap stack:
aload 0
new java.io.BufferedInputStream
dup
aload 0
getfield sun.net.NetworkClient.serverSocket:Ljava/net/Socket;
invokevirtual java.net.Socket.getInputStream:()Ljava/io/InputStream;
invokespecial java.io.BufferedInputStream.<init>:(Ljava/io/InputStream;)V
putfield sun.net.NetworkClient.serverInput:Ljava/io/InputStream;
11: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lsun/net/NetworkClient;
0 12 1 server Ljava/lang/String;
0 12 2 port I
9 10 3 e Ljava/io/UnsupportedEncodingException;
Exception table:
from to target type
3 7 8 Class java.io.UnsupportedEncodingException
Exceptions:
throws java.io.IOException, java.net.UnknownHostException
MethodParameters:
Name Flags
server
port
protected java.net.Socket doConnect(java.lang.String, int);
descriptor: (Ljava/lang/String;I)Ljava/net/Socket;
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield sun.net.NetworkClient.proxy:Ljava/net/Proxy;
ifnull 10
1: aload 0
getfield sun.net.NetworkClient.proxy:Ljava/net/Proxy;
invokevirtual java.net.Proxy.type:()Ljava/net/Proxy$Type;
getstatic java.net.Proxy$Type.SOCKS:Ljava/net/Proxy$Type;
if_acmpne 5
2: new sun.net.NetworkClient$2
dup
aload 0
invokespecial sun.net.NetworkClient$2.<init>:(Lsun/net/NetworkClient;)V
3: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.net.Socket
astore 3
start local 3 4: goto 11
end local 3 StackMap locals:
StackMap stack:
5: aload 0
getfield sun.net.NetworkClient.proxy:Ljava/net/Proxy;
invokevirtual java.net.Proxy.type:()Ljava/net/Proxy$Type;
getstatic java.net.Proxy$Type.DIRECT:Ljava/net/Proxy$Type;
if_acmpne 8
6: aload 0
invokevirtual sun.net.NetworkClient.createSocket:()Ljava/net/Socket;
astore 3
start local 3 7: goto 11
end local 3 8: StackMap locals:
StackMap stack:
new java.net.Socket
dup
getstatic java.net.Proxy.NO_PROXY:Ljava/net/Proxy;
invokespecial java.net.Socket.<init>:(Ljava/net/Proxy;)V
astore 3
start local 3 9: goto 11
end local 3 10: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.net.NetworkClient.createSocket:()Ljava/net/Socket;
astore 3
start local 3 11: StackMap locals: java.net.Socket
StackMap stack:
aload 0
getfield sun.net.NetworkClient.connectTimeout:I
iflt 14
12: aload 3
new java.net.InetSocketAddress
dup
aload 1
iload 2
invokespecial java.net.InetSocketAddress.<init>:(Ljava/lang/String;I)V
aload 0
getfield sun.net.NetworkClient.connectTimeout:I
invokevirtual java.net.Socket.connect:(Ljava/net/SocketAddress;I)V
13: goto 18
14: StackMap locals:
StackMap stack:
getstatic sun.net.NetworkClient.defaultConnectTimeout:I
ifle 17
15: aload 3
new java.net.InetSocketAddress
dup
aload 1
iload 2
invokespecial java.net.InetSocketAddress.<init>:(Ljava/lang/String;I)V
getstatic sun.net.NetworkClient.defaultConnectTimeout:I
invokevirtual java.net.Socket.connect:(Ljava/net/SocketAddress;I)V
16: goto 18
17: StackMap locals:
StackMap stack:
aload 3
new java.net.InetSocketAddress
dup
aload 1
iload 2
invokespecial java.net.InetSocketAddress.<init>:(Ljava/lang/String;I)V
invokevirtual java.net.Socket.connect:(Ljava/net/SocketAddress;)V
18: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.NetworkClient.readTimeout:I
iflt 20
19: aload 3
aload 0
getfield sun.net.NetworkClient.readTimeout:I
invokevirtual java.net.Socket.setSoTimeout:(I)V
goto 22
20: StackMap locals:
StackMap stack:
getstatic sun.net.NetworkClient.defaultSoTimeout:I
ifle 22
21: aload 3
getstatic sun.net.NetworkClient.defaultSoTimeout:I
invokevirtual java.net.Socket.setSoTimeout:(I)V
22: StackMap locals:
StackMap stack:
aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 this Lsun/net/NetworkClient;
0 23 1 server Ljava/lang/String;
0 23 2 port I
4 5 3 s Ljava/net/Socket;
7 8 3 s Ljava/net/Socket;
9 10 3 s Ljava/net/Socket;
11 23 3 s Ljava/net/Socket;
Exceptions:
throws java.io.IOException, java.net.UnknownHostException
MethodParameters:
Name Flags
server
port
protected java.net.Socket createSocket();
descriptor: ()Ljava/net/Socket;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.net.Socket
dup
getstatic java.net.Proxy.NO_PROXY:Ljava/net/Proxy;
invokespecial java.net.Socket.<init>:(Ljava/net/Proxy;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/net/NetworkClient;
Exceptions:
throws java.io.IOException
protected java.net.InetAddress getLocalAddress();
descriptor: ()Ljava/net/InetAddress;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.net.NetworkClient.serverSocket:Ljava/net/Socket;
ifnonnull 2
1: new java.io.IOException
dup
ldc "not connected"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
new sun.net.NetworkClient$3
dup
aload 0
invokespecial sun.net.NetworkClient$3.<init>:(Lsun/net/NetworkClient;)V
3: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.net.InetAddress
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/net/NetworkClient;
Exceptions:
throws java.io.IOException
public void closeServer();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual sun.net.NetworkClient.serverIsOpen:()Z
ifne 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.NetworkClient.serverSocket:Ljava/net/Socket;
invokevirtual java.net.Socket.close:()V
3: aload 0
aconst_null
putfield sun.net.NetworkClient.serverSocket:Ljava/net/Socket;
4: aload 0
aconst_null
putfield sun.net.NetworkClient.serverInput:Ljava/io/InputStream;
5: aload 0
aconst_null
putfield sun.net.NetworkClient.serverOutput:Ljava/io/PrintStream;
6: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/net/NetworkClient;
Exceptions:
throws java.io.IOException
public boolean serverIsOpen();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.net.NetworkClient.serverSocket:Ljava/net/Socket;
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/net/NetworkClient;
public void <init>(java.lang.String, int);
descriptor: (Ljava/lang/String;I)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
invokespecial java.lang.Object.<init>:()V
1: aload 0
getstatic java.net.Proxy.NO_PROXY:Ljava/net/Proxy;
putfield sun.net.NetworkClient.proxy:Ljava/net/Proxy;
2: aload 0
aconst_null
putfield sun.net.NetworkClient.serverSocket:Ljava/net/Socket;
3: aload 0
iconst_m1
putfield sun.net.NetworkClient.readTimeout:I
4: aload 0
iconst_m1
putfield sun.net.NetworkClient.connectTimeout:I
5: aload 0
aload 1
iload 2
invokevirtual sun.net.NetworkClient.openServer:(Ljava/lang/String;I)V
6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/net/NetworkClient;
0 7 1 host Ljava/lang/String;
0 7 2 port I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
host
port
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
getstatic java.net.Proxy.NO_PROXY:Ljava/net/Proxy;
putfield sun.net.NetworkClient.proxy:Ljava/net/Proxy;
2: aload 0
aconst_null
putfield sun.net.NetworkClient.serverSocket:Ljava/net/Socket;
3: aload 0
iconst_m1
putfield sun.net.NetworkClient.readTimeout:I
4: aload 0
iconst_m1
putfield sun.net.NetworkClient.connectTimeout:I
5: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/net/NetworkClient;
public void setConnectTimeout(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.net.NetworkClient.connectTimeout:I
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/net/NetworkClient;
0 2 1 timeout I
MethodParameters:
Name Flags
timeout
public int getConnectTimeout();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.net.NetworkClient.connectTimeout:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/net/NetworkClient;
public void setReadTimeout(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: iload 1
iconst_m1
if_icmpne 2
1: getstatic sun.net.NetworkClient.defaultSoTimeout:I
istore 1
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.NetworkClient.serverSocket:Ljava/net/Socket;
ifnull 6
iload 1
iflt 6
3: aload 0
getfield sun.net.NetworkClient.serverSocket:Ljava/net/Socket;
iload 1
invokevirtual java.net.Socket.setSoTimeout:(I)V
4: goto 6
StackMap locals:
StackMap stack: java.io.IOException
5: pop
6: StackMap locals:
StackMap stack:
aload 0
iload 1
putfield sun.net.NetworkClient.readTimeout:I
7: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/net/NetworkClient;
0 8 1 timeout I
Exception table:
from to target type
3 4 5 Class java.io.IOException
MethodParameters:
Name Flags
timeout
public int getReadTimeout();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.net.NetworkClient.readTimeout:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/net/NetworkClient;
}
SourceFile: "NetworkClient.java"
NestMembers:
sun.net.NetworkClient$1 sun.net.NetworkClient$2 sun.net.NetworkClient$3
InnerClasses:
public final Type = java.net.Proxy$Type of java.net.Proxy
sun.net.NetworkClient$1
sun.net.NetworkClient$2
sun.net.NetworkClient$3