public class sun.rmi.transport.tcp.TCPConnection implements sun.rmi.transport.Connection
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.rmi.transport.tcp.TCPConnection
super_class: java.lang.Object
{
private java.net.Socket socket;
descriptor: Ljava/net/Socket;
flags: (0x0002) ACC_PRIVATE
private sun.rmi.transport.Channel channel;
descriptor: Lsun/rmi/transport/Channel;
flags: (0x0002) ACC_PRIVATE
private java.io.InputStream in;
descriptor: Ljava/io/InputStream;
flags: (0x0002) ACC_PRIVATE
private java.io.OutputStream out;
descriptor: Ljava/io/OutputStream;
flags: (0x0002) ACC_PRIVATE
private long expiration;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private long lastuse;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private long roundtrip;
descriptor: J
flags: (0x0002) ACC_PRIVATE
void <init>(sun.rmi.transport.tcp.TCPChannel, java.net.Socket, java.io.InputStream, java.io.OutputStream);
descriptor: (Lsun/rmi/transport/tcp/TCPChannel;Ljava/net/Socket;Ljava/io/InputStream;Ljava/io/OutputStream;)V
flags: (0x0000)
Code:
stack=3, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aconst_null
putfield sun.rmi.transport.tcp.TCPConnection.in:Ljava/io/InputStream;
2: aload 0
aconst_null
putfield sun.rmi.transport.tcp.TCPConnection.out:Ljava/io/OutputStream;
3: aload 0
ldc 9223372036854775807
putfield sun.rmi.transport.tcp.TCPConnection.expiration:J
4: aload 0
ldc -9223372036854775808
putfield sun.rmi.transport.tcp.TCPConnection.lastuse:J
5: aload 0
ldc 5
putfield sun.rmi.transport.tcp.TCPConnection.roundtrip:J
6: aload 0
aload 2
putfield sun.rmi.transport.tcp.TCPConnection.socket:Ljava/net/Socket;
7: aload 0
aload 1
putfield sun.rmi.transport.tcp.TCPConnection.channel:Lsun/rmi/transport/Channel;
8: aload 0
aload 3
putfield sun.rmi.transport.tcp.TCPConnection.in:Ljava/io/InputStream;
9: aload 0
aload 4
putfield sun.rmi.transport.tcp.TCPConnection.out:Ljava/io/OutputStream;
10: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lsun/rmi/transport/tcp/TCPConnection;
0 11 1 ch Lsun/rmi/transport/tcp/TCPChannel;
0 11 2 s Ljava/net/Socket;
0 11 3 in Ljava/io/InputStream;
0 11 4 out Ljava/io/OutputStream;
MethodParameters:
Name Flags
ch
s
in
out
void <init>(sun.rmi.transport.tcp.TCPChannel, java.io.InputStream, java.io.OutputStream);
descriptor: (Lsun/rmi/transport/tcp/TCPChannel;Ljava/io/InputStream;Ljava/io/OutputStream;)V
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 1
aconst_null
aload 2
aload 3
invokespecial sun.rmi.transport.tcp.TCPConnection.<init>:(Lsun/rmi/transport/tcp/TCPChannel;Ljava/net/Socket;Ljava/io/InputStream;Ljava/io/OutputStream;)V
1: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/rmi/transport/tcp/TCPConnection;
0 2 1 ch Lsun/rmi/transport/tcp/TCPChannel;
0 2 2 in Ljava/io/InputStream;
0 2 3 out Ljava/io/OutputStream;
MethodParameters:
Name Flags
ch
in
out
void <init>(sun.rmi.transport.tcp.TCPChannel, java.net.Socket);
descriptor: (Lsun/rmi/transport/tcp/TCPChannel;Ljava/net/Socket;)V
flags: (0x0000)
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
aconst_null
aconst_null
invokespecial sun.rmi.transport.tcp.TCPConnection.<init>:(Lsun/rmi/transport/tcp/TCPChannel;Ljava/net/Socket;Ljava/io/InputStream;Ljava/io/OutputStream;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/rmi/transport/tcp/TCPConnection;
0 2 1 ch Lsun/rmi/transport/tcp/TCPChannel;
0 2 2 s Ljava/net/Socket;
MethodParameters:
Name Flags
ch
s
public java.io.OutputStream getOutputStream();
descriptor: ()Ljava/io/OutputStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.rmi.transport.tcp.TCPConnection.out:Ljava/io/OutputStream;
ifnonnull 2
1: aload 0
new java.io.BufferedOutputStream
dup
aload 0
getfield sun.rmi.transport.tcp.TCPConnection.socket:Ljava/net/Socket;
invokevirtual java.net.Socket.getOutputStream:()Ljava/io/OutputStream;
invokespecial java.io.BufferedOutputStream.<init>:(Ljava/io/OutputStream;)V
putfield sun.rmi.transport.tcp.TCPConnection.out:Ljava/io/OutputStream;
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.rmi.transport.tcp.TCPConnection.out:Ljava/io/OutputStream;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/rmi/transport/tcp/TCPConnection;
Exceptions:
throws java.io.IOException
public void releaseOutputStream();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.rmi.transport.tcp.TCPConnection.out:Ljava/io/OutputStream;
ifnull 2
1: aload 0
getfield sun.rmi.transport.tcp.TCPConnection.out:Ljava/io/OutputStream;
invokevirtual java.io.OutputStream.flush:()V
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/rmi/transport/tcp/TCPConnection;
Exceptions:
throws java.io.IOException
public java.io.InputStream getInputStream();
descriptor: ()Ljava/io/InputStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.rmi.transport.tcp.TCPConnection.in:Ljava/io/InputStream;
ifnonnull 2
1: aload 0
new java.io.BufferedInputStream
dup
aload 0
getfield sun.rmi.transport.tcp.TCPConnection.socket:Ljava/net/Socket;
invokevirtual java.net.Socket.getInputStream:()Ljava/io/InputStream;
invokespecial java.io.BufferedInputStream.<init>:(Ljava/io/InputStream;)V
putfield sun.rmi.transport.tcp.TCPConnection.in:Ljava/io/InputStream;
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.rmi.transport.tcp.TCPConnection.in:Ljava/io/InputStream;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/rmi/transport/tcp/TCPConnection;
Exceptions:
throws java.io.IOException
public void releaseInputStream();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=1, args_size=1
start local 0 0: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/rmi/transport/tcp/TCPConnection;
public boolean isReusable();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/rmi/transport/tcp/TCPConnection;
void setExpiration(long);
descriptor: (J)V
flags: (0x0000)
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
lload 1
putfield sun.rmi.transport.tcp.TCPConnection.expiration:J
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/rmi/transport/tcp/TCPConnection;
0 2 1 time J
MethodParameters:
Name Flags
time
void setLastUseTime(long);
descriptor: (J)V
flags: (0x0000)
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
lload 1
putfield sun.rmi.transport.tcp.TCPConnection.lastuse:J
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/rmi/transport/tcp/TCPConnection;
0 2 1 time J
MethodParameters:
Name Flags
time
boolean expired(long);
descriptor: (J)Z
flags: (0x0000)
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.rmi.transport.tcp.TCPConnection.expiration:J
lload 1
lcmp
ifgt 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/rmi/transport/tcp/TCPConnection;
0 2 1 time J
MethodParameters:
Name Flags
time
public boolean isDead();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=7, args_size=1
start local 0 0: invokestatic java.lang.System.currentTimeMillis:()J
lstore 3
start local 3 1: aload 0
getfield sun.rmi.transport.tcp.TCPConnection.roundtrip:J
lconst_0
lcmp
ifle 3
lload 3
aload 0
getfield sun.rmi.transport.tcp.TCPConnection.lastuse:J
aload 0
getfield sun.rmi.transport.tcp.TCPConnection.roundtrip:J
ladd
lcmp
ifge 3
2: iconst_0
ireturn
3: StackMap locals: sun.rmi.transport.tcp.TCPConnection top top long
StackMap stack:
aload 0
invokevirtual sun.rmi.transport.tcp.TCPConnection.getInputStream:()Ljava/io/InputStream;
astore 1
start local 1 4: aload 0
invokevirtual sun.rmi.transport.tcp.TCPConnection.getOutputStream:()Ljava/io/OutputStream;
astore 2
start local 2 5: goto 8
end local 2 end local 1 StackMap locals:
StackMap stack: java.io.IOException
6: pop
7: iconst_1
ireturn
start local 1 start local 2 8: StackMap locals: sun.rmi.transport.tcp.TCPConnection java.io.InputStream java.io.OutputStream long
StackMap stack:
iconst_0
istore 5
start local 5 9: aload 2
bipush 82
invokevirtual java.io.OutputStream.write:(I)V
10: aload 2
invokevirtual java.io.OutputStream.flush:()V
11: aload 1
invokevirtual java.io.InputStream.read:()I
istore 5
12: goto 17
StackMap locals: sun.rmi.transport.tcp.TCPConnection java.io.InputStream java.io.OutputStream long int
StackMap stack: java.io.IOException
13: astore 6
start local 6 14: getstatic sun.rmi.transport.tcp.TCPTransport.tcpLog:Lsun/rmi/runtime/Log;
getstatic sun.rmi.runtime.Log.VERBOSE:Ljava/util/logging/Level;
ldc "exception: "
aload 6
invokevirtual sun.rmi.runtime.Log.log:(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
15: getstatic sun.rmi.transport.tcp.TCPTransport.tcpLog:Lsun/rmi/runtime/Log;
getstatic sun.rmi.runtime.Log.BRIEF:Ljava/util/logging/Level;
ldc "server ping failed"
invokevirtual sun.rmi.runtime.Log.log:(Ljava/util/logging/Level;Ljava/lang/String;)V
16: iconst_1
ireturn
end local 6 17: StackMap locals:
StackMap stack:
iload 5
bipush 83
if_icmpne 20
18: aload 0
invokestatic java.lang.System.currentTimeMillis:()J
lload 3
lsub
ldc 2
lmul
putfield sun.rmi.transport.tcp.TCPConnection.roundtrip:J
19: iconst_0
ireturn
20: StackMap locals:
StackMap stack:
getstatic sun.rmi.transport.tcp.TCPTransport.tcpLog:Lsun/rmi/runtime/Log;
getstatic sun.rmi.runtime.Log.BRIEF:Ljava/util/logging/Level;
invokevirtual sun.rmi.runtime.Log.isLoggable:(Ljava/util/logging/Level;)Z
ifeq 25
21: getstatic sun.rmi.transport.tcp.TCPTransport.tcpLog:Lsun/rmi/runtime/Log;
getstatic sun.rmi.runtime.Log.BRIEF:Ljava/util/logging/Level;
22: iload 5
iconst_m1
if_icmpne 23
ldc "server has been deactivated"
goto 24
23: StackMap locals: sun.rmi.transport.tcp.TCPConnection java.io.InputStream java.io.OutputStream long int
StackMap stack: sun.rmi.runtime.Log java.util.logging.Level
new java.lang.StringBuilder
dup
ldc "server protocol error: ping response = "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 5
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
24: StackMap locals: sun.rmi.transport.tcp.TCPConnection java.io.InputStream java.io.OutputStream long int
StackMap stack: sun.rmi.runtime.Log java.util.logging.Level java.lang.String
invokevirtual sun.rmi.runtime.Log.log:(Ljava/util/logging/Level;Ljava/lang/String;)V
25: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 5 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 26 0 this Lsun/rmi/transport/tcp/TCPConnection;
4 6 1 i Ljava/io/InputStream;
8 26 1 i Ljava/io/InputStream;
5 6 2 o Ljava/io/OutputStream;
8 26 2 o Ljava/io/OutputStream;
1 26 3 start J
9 26 5 response I
14 17 6 ex Ljava/io/IOException;
Exception table:
from to target type
3 5 6 Class java.io.IOException
9 12 13 Class java.io.IOException
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: getstatic sun.rmi.transport.tcp.TCPTransport.tcpLog:Lsun/rmi/runtime/Log;
getstatic sun.rmi.runtime.Log.BRIEF:Ljava/util/logging/Level;
ldc "close connection"
invokevirtual sun.rmi.runtime.Log.log:(Ljava/util/logging/Level;Ljava/lang/String;)V
1: aload 0
getfield sun.rmi.transport.tcp.TCPConnection.socket:Ljava/net/Socket;
ifnull 3
2: aload 0
getfield sun.rmi.transport.tcp.TCPConnection.socket:Ljava/net/Socket;
invokevirtual java.net.Socket.close:()V
goto 5
3: StackMap locals:
StackMap stack:
aload 0
getfield sun.rmi.transport.tcp.TCPConnection.in:Ljava/io/InputStream;
invokevirtual java.io.InputStream.close:()V
4: aload 0
getfield sun.rmi.transport.tcp.TCPConnection.out:Ljava/io/OutputStream;
invokevirtual java.io.OutputStream.close:()V
5: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/rmi/transport/tcp/TCPConnection;
Exceptions:
throws java.io.IOException
public sun.rmi.transport.Channel getChannel();
descriptor: ()Lsun/rmi/transport/Channel;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.rmi.transport.tcp.TCPConnection.channel:Lsun/rmi/transport/Channel;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/rmi/transport/tcp/TCPConnection;
}
SourceFile: "TCPConnection.java"