class com.sun.jndi.dns.Tcp
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.sun.jndi.dns.Tcp
super_class: java.lang.Object
{
private final java.net.Socket sock;
descriptor: Ljava/net/Socket;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.io.InputStream in;
descriptor: Ljava/io/InputStream;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
final java.io.OutputStream out;
descriptor: Ljava/io/OutputStream;
flags: (0x0010) ACC_FINAL
private int timeoutLeft;
descriptor: I
flags: (0x0002) ACC_PRIVATE
void <init>(java.net.InetAddress, int, int);
descriptor: (Ljava/net/InetAddress;II)V
flags: (0x0000)
Code:
stack=7, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.net.Socket
dup
invokespecial java.net.Socket.<init>:()V
putfield com.sun.jndi.dns.Tcp.sock:Ljava/net/Socket;
2: invokestatic java.lang.System.currentTimeMillis:()J
lstore 4
start local 4 3: aload 0
getfield com.sun.jndi.dns.Tcp.sock:Ljava/net/Socket;
new java.net.InetSocketAddress
dup
aload 1
iload 2
invokespecial java.net.InetSocketAddress.<init>:(Ljava/net/InetAddress;I)V
iload 3
invokevirtual java.net.Socket.connect:(Ljava/net/SocketAddress;I)V
4: aload 0
iload 3
i2l
invokestatic java.lang.System.currentTimeMillis:()J
lload 4
lsub
lsub
l2i
putfield com.sun.jndi.dns.Tcp.timeoutLeft:I
5: aload 0
getfield com.sun.jndi.dns.Tcp.timeoutLeft:I
ifgt 7
6: new java.net.SocketTimeoutException
dup
invokespecial java.net.SocketTimeoutException.<init>:()V
athrow
7: StackMap locals: com.sun.jndi.dns.Tcp java.net.InetAddress int int long
StackMap stack:
aload 0
getfield com.sun.jndi.dns.Tcp.sock:Ljava/net/Socket;
iconst_1
invokevirtual java.net.Socket.setTcpNoDelay:(Z)V
8: aload 0
new java.io.BufferedOutputStream
dup
aload 0
getfield com.sun.jndi.dns.Tcp.sock:Ljava/net/Socket;
invokevirtual java.net.Socket.getOutputStream:()Ljava/io/OutputStream;
invokespecial java.io.BufferedOutputStream.<init>:(Ljava/io/OutputStream;)V
putfield com.sun.jndi.dns.Tcp.out:Ljava/io/OutputStream;
9: aload 0
new java.io.BufferedInputStream
dup
aload 0
getfield com.sun.jndi.dns.Tcp.sock:Ljava/net/Socket;
invokevirtual java.net.Socket.getInputStream:()Ljava/io/InputStream;
invokespecial java.io.BufferedInputStream.<init>:(Ljava/io/InputStream;)V
putfield com.sun.jndi.dns.Tcp.in:Ljava/io/InputStream;
end local 4 10: goto 17
StackMap locals: com.sun.jndi.dns.Tcp java.net.InetAddress int int
StackMap stack: java.lang.Exception
11: astore 4
start local 4 12: aload 0
getfield com.sun.jndi.dns.Tcp.sock:Ljava/net/Socket;
invokevirtual java.net.Socket.close:()V
13: goto 16
StackMap locals: com.sun.jndi.dns.Tcp java.net.InetAddress int int java.lang.Exception
StackMap stack: java.io.IOException
14: astore 5
start local 5 15: aload 4
aload 5
invokevirtual java.lang.Exception.addSuppressed:(Ljava/lang/Throwable;)V
end local 5 16: StackMap locals:
StackMap stack:
aload 4
athrow
end local 4 17: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lcom/sun/jndi/dns/Tcp;
0 18 1 server Ljava/net/InetAddress;
0 18 2 port I
0 18 3 timeout I
3 10 4 start J
12 17 4 e Ljava/lang/Exception;
15 16 5 ex Ljava/io/IOException;
Exception table:
from to target type
2 10 11 Class java.lang.Exception
12 13 14 Class java.io.IOException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
server
port
timeout
void close();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.jndi.dns.Tcp.sock:Ljava/net/Socket;
invokevirtual java.net.Socket.close:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/jndi/dns/Tcp;
Exceptions:
throws java.io.IOException
private int readWithTimeout(com.sun.jndi.dns.Tcp$SocketReadOp);
descriptor: (Lcom/sun/jndi/dns/Tcp$SocketReadOp;)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=6, args_size=2
start local 0 start local 1 0: aload 0
getfield com.sun.jndi.dns.Tcp.timeoutLeft:I
ifgt 2
1: new java.net.SocketTimeoutException
dup
invokespecial java.net.SocketTimeoutException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.jndi.dns.Tcp.sock:Ljava/net/Socket;
aload 0
getfield com.sun.jndi.dns.Tcp.timeoutLeft:I
invokevirtual java.net.Socket.setSoTimeout:(I)V
3: invokestatic java.lang.System.currentTimeMillis:()J
lstore 2
start local 2 4: aload 1
invokeinterface com.sun.jndi.dns.Tcp$SocketReadOp.read:()I
istore 5
5: aload 0
dup
getfield com.sun.jndi.dns.Tcp.timeoutLeft:I
i2l
invokestatic java.lang.System.currentTimeMillis:()J
lload 2
lsub
lsub
l2i
putfield com.sun.jndi.dns.Tcp.timeoutLeft:I
6: iload 5
ireturn
7: StackMap locals: com.sun.jndi.dns.Tcp com.sun.jndi.dns.Tcp$SocketReadOp long
StackMap stack: java.lang.Throwable
astore 4
8: aload 0
dup
getfield com.sun.jndi.dns.Tcp.timeoutLeft:I
i2l
invokestatic java.lang.System.currentTimeMillis:()J
lload 2
lsub
lsub
l2i
putfield com.sun.jndi.dns.Tcp.timeoutLeft:I
9: aload 4
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/sun/jndi/dns/Tcp;
0 10 1 reader Lcom/sun/jndi/dns/Tcp$SocketReadOp;
4 10 2 start J
Exception table:
from to target type
4 5 7 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
reader
int read();
descriptor: ()I
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aload 0
invokedynamic read(Lcom/sun/jndi/dns/Tcp;)Lcom/sun/jndi/dns/Tcp$SocketReadOp;
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:
()I
com/sun/jndi/dns/Tcp.lambda$0()I (7)
()I
invokevirtual com.sun.jndi.dns.Tcp.readWithTimeout:(Lcom/sun/jndi/dns/Tcp$SocketReadOp;)I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/jndi/dns/Tcp;
Exceptions:
throws java.io.IOException
int read(byte[], int, int);
descriptor: ([BII)I
flags: (0x0000)
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 0
aload 1
iload 2
iload 3
invokedynamic read(Lcom/sun/jndi/dns/Tcp;[BII)Lcom/sun/jndi/dns/Tcp$SocketReadOp;
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:
()I
com/sun/jndi/dns/Tcp.lambda$1([BII)I (7)
()I
invokevirtual com.sun.jndi.dns.Tcp.readWithTimeout:(Lcom/sun/jndi/dns/Tcp$SocketReadOp;)I
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/jndi/dns/Tcp;
0 1 1 b [B
0 1 2 off I
0 1 3 len I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b
off
len
private int lambda$0();
descriptor: ()I
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.jndi.dns.Tcp.in:Ljava/io/InputStream;
invokevirtual java.io.InputStream.read:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/jndi/dns/Tcp;
Exceptions:
throws java.io.IOException
private int lambda$1(byte[], int, int);
descriptor: ([BII)I
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=4, locals=4, args_size=4
start local 0 0: aload 0
getfield com.sun.jndi.dns.Tcp.in:Ljava/io/InputStream;
aload 1
iload 2
iload 3
invokevirtual java.io.InputStream.read:([BII)I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/jndi/dns/Tcp;
Exceptions:
throws java.io.IOException
}
SourceFile: "DnsClient.java"
NestMembers:
com.sun.jndi.dns.Tcp$SocketReadOp
InnerClasses:
private abstract SocketReadOp = com.sun.jndi.dns.Tcp$SocketReadOp of com.sun.jndi.dns.Tcp
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles