final class sun.rmi.transport.tcp.MultiplexOutputStream extends java.io.OutputStream
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: sun.rmi.transport.tcp.MultiplexOutputStream
super_class: java.io.OutputStream
{
private sun.rmi.transport.tcp.ConnectionMultiplexer manager;
descriptor: Lsun/rmi/transport/tcp/ConnectionMultiplexer;
flags: (0x0002) ACC_PRIVATE
private sun.rmi.transport.tcp.MultiplexConnectionInfo info;
descriptor: Lsun/rmi/transport/tcp/MultiplexConnectionInfo;
flags: (0x0002) ACC_PRIVATE
private byte[] buffer;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
private int pos;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int requested;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private boolean disconnected;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private java.lang.Object lock;
descriptor: Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
void <init>(sun.rmi.transport.tcp.ConnectionMultiplexer, sun.rmi.transport.tcp.MultiplexConnectionInfo, int);
descriptor: (Lsun/rmi/transport/tcp/ConnectionMultiplexer;Lsun/rmi/transport/tcp/MultiplexConnectionInfo;I)V
flags: (0x0000)
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.io.OutputStream.<init>:()V
1: aload 0
iconst_0
putfield sun.rmi.transport.tcp.MultiplexOutputStream.pos:I
2: aload 0
iconst_0
putfield sun.rmi.transport.tcp.MultiplexOutputStream.requested:I
3: aload 0
iconst_0
putfield sun.rmi.transport.tcp.MultiplexOutputStream.disconnected:Z
4: aload 0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putfield sun.rmi.transport.tcp.MultiplexOutputStream.lock:Ljava/lang/Object;
5: aload 0
aload 1
putfield sun.rmi.transport.tcp.MultiplexOutputStream.manager:Lsun/rmi/transport/tcp/ConnectionMultiplexer;
6: aload 0
aload 2
putfield sun.rmi.transport.tcp.MultiplexOutputStream.info:Lsun/rmi/transport/tcp/MultiplexConnectionInfo;
7: aload 0
iload 3
newarray 8
putfield sun.rmi.transport.tcp.MultiplexOutputStream.buffer:[B
8: aload 0
iconst_0
putfield sun.rmi.transport.tcp.MultiplexOutputStream.pos:I
9: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lsun/rmi/transport/tcp/MultiplexOutputStream;
0 10 1 manager Lsun/rmi/transport/tcp/ConnectionMultiplexer;
0 10 2 info Lsun/rmi/transport/tcp/MultiplexConnectionInfo;
0 10 3 bufferLength I
MethodParameters:
Name Flags
manager
info
bufferLength
public synchronized void write(int);
descriptor: (I)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: goto 2
1: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.rmi.transport.tcp.MultiplexOutputStream.push:()V
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.rmi.transport.tcp.MultiplexOutputStream.pos:I
aload 0
getfield sun.rmi.transport.tcp.MultiplexOutputStream.buffer:[B
arraylength
if_icmpge 1
3: aload 0
getfield sun.rmi.transport.tcp.MultiplexOutputStream.buffer:[B
aload 0
dup
getfield sun.rmi.transport.tcp.MultiplexOutputStream.pos:I
dup_x1
iconst_1
iadd
putfield sun.rmi.transport.tcp.MultiplexOutputStream.pos:I
iload 1
i2b
bastore
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/rmi/transport/tcp/MultiplexOutputStream;
0 5 1 b I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b
public synchronized void write(byte[], int, int);
descriptor: ([BII)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=5, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 3
ifgt 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.rmi.transport.tcp.MultiplexOutputStream.buffer:[B
arraylength
aload 0
getfield sun.rmi.transport.tcp.MultiplexOutputStream.pos:I
isub
istore 4
start local 4 3: iload 3
iload 4
if_icmpgt 7
4: aload 1
iload 2
aload 0
getfield sun.rmi.transport.tcp.MultiplexOutputStream.buffer:[B
aload 0
getfield sun.rmi.transport.tcp.MultiplexOutputStream.pos:I
iload 3
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
5: aload 0
dup
getfield sun.rmi.transport.tcp.MultiplexOutputStream.pos:I
iload 3
iadd
putfield sun.rmi.transport.tcp.MultiplexOutputStream.pos:I
6: return
7: StackMap locals: int
StackMap stack:
aload 0
invokevirtual sun.rmi.transport.tcp.MultiplexOutputStream.flush:()V
8: StackMap locals:
StackMap stack:
aload 0
getfield sun.rmi.transport.tcp.MultiplexOutputStream.lock:Ljava/lang/Object;
dup
astore 6
monitorenter
9: goto 13
start local 5 10: StackMap locals: int java.lang.Object
StackMap stack:
aload 0
getfield sun.rmi.transport.tcp.MultiplexOutputStream.lock:Ljava/lang/Object;
invokevirtual java.lang.Object.wait:()V
11: goto 13
StackMap locals:
StackMap stack: java.lang.InterruptedException
12: pop
end local 5 13: StackMap locals: sun.rmi.transport.tcp.MultiplexOutputStream byte[] int int int top java.lang.Object
StackMap stack:
aload 0
getfield sun.rmi.transport.tcp.MultiplexOutputStream.requested:I
dup
istore 5
start local 5 14: iconst_1
if_icmpge 15
aload 0
getfield sun.rmi.transport.tcp.MultiplexOutputStream.disconnected:Z
ifeq 10
15: StackMap locals: sun.rmi.transport.tcp.MultiplexOutputStream byte[] int int int int java.lang.Object
StackMap stack:
aload 0
getfield sun.rmi.transport.tcp.MultiplexOutputStream.disconnected:Z
ifeq 17
16: new java.io.IOException
dup
ldc "Connection closed"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
17: StackMap locals:
StackMap stack:
aload 6
monitorexit
18: goto 21
end local 5 StackMap locals: sun.rmi.transport.tcp.MultiplexOutputStream byte[] int int int top java.lang.Object
StackMap stack: java.lang.Throwable
19: aload 6
monitorexit
20: athrow
start local 5 21: StackMap locals: sun.rmi.transport.tcp.MultiplexOutputStream byte[] int int int int
StackMap stack:
iload 5
iload 3
if_icmpge 31
22: aload 0
getfield sun.rmi.transport.tcp.MultiplexOutputStream.manager:Lsun/rmi/transport/tcp/ConnectionMultiplexer;
aload 0
getfield sun.rmi.transport.tcp.MultiplexOutputStream.info:Lsun/rmi/transport/tcp/MultiplexConnectionInfo;
aload 1
iload 2
iload 5
invokevirtual sun.rmi.transport.tcp.ConnectionMultiplexer.sendTransmit:(Lsun/rmi/transport/tcp/MultiplexConnectionInfo;[BII)V
23: iload 2
iload 5
iadd
istore 2
24: iload 3
iload 5
isub
istore 3
25: aload 0
getfield sun.rmi.transport.tcp.MultiplexOutputStream.lock:Ljava/lang/Object;
dup
astore 6
monitorenter
26: aload 0
dup
getfield sun.rmi.transport.tcp.MultiplexOutputStream.requested:I
iload 5
isub
putfield sun.rmi.transport.tcp.MultiplexOutputStream.requested:I
27: aload 6
monitorexit
28: goto 8
StackMap locals: sun.rmi.transport.tcp.MultiplexOutputStream byte[] int int int int java.lang.Object
StackMap stack: java.lang.Throwable
29: aload 6
monitorexit
30: athrow
31: StackMap locals:
StackMap stack:
aload 0
getfield sun.rmi.transport.tcp.MultiplexOutputStream.manager:Lsun/rmi/transport/tcp/ConnectionMultiplexer;
aload 0
getfield sun.rmi.transport.tcp.MultiplexOutputStream.info:Lsun/rmi/transport/tcp/MultiplexConnectionInfo;
aload 1
iload 2
iload 3
invokevirtual sun.rmi.transport.tcp.ConnectionMultiplexer.sendTransmit:(Lsun/rmi/transport/tcp/MultiplexConnectionInfo;[BII)V
32: aload 0
getfield sun.rmi.transport.tcp.MultiplexOutputStream.lock:Ljava/lang/Object;
dup
astore 6
monitorenter
33: aload 0
dup
getfield sun.rmi.transport.tcp.MultiplexOutputStream.requested:I
iload 3
isub
putfield sun.rmi.transport.tcp.MultiplexOutputStream.requested:I
34: aload 6
monitorexit
35: goto 38
StackMap locals: sun.rmi.transport.tcp.MultiplexOutputStream byte[] int int int int java.lang.Object
StackMap stack: java.lang.Throwable
36: aload 6
monitorexit
37: athrow
38: StackMap locals:
StackMap stack:
return
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 39 0 this Lsun/rmi/transport/tcp/MultiplexOutputStream;
0 39 1 b [B
0 39 2 off I
0 39 3 len I
3 39 4 freeSpace I
10 13 5 local_requested I
14 19 5 local_requested I
21 39 5 local_requested I
Exception table:
from to target type
10 11 12 Class java.lang.InterruptedException
9 18 19 any
19 20 19 any
26 28 29 any
29 30 29 any
33 35 36 any
36 37 36 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b
off
len
public synchronized void flush();
descriptor: ()V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=1, args_size=1
start local 0 0: goto 2
1: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.rmi.transport.tcp.MultiplexOutputStream.push:()V
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.rmi.transport.tcp.MultiplexOutputStream.pos:I
ifgt 1
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/rmi/transport/tcp/MultiplexOutputStream;
Exceptions:
throws java.io.IOException
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.rmi.transport.tcp.MultiplexOutputStream.manager:Lsun/rmi/transport/tcp/ConnectionMultiplexer;
aload 0
getfield sun.rmi.transport.tcp.MultiplexOutputStream.info:Lsun/rmi/transport/tcp/MultiplexConnectionInfo;
invokevirtual sun.rmi.transport.tcp.ConnectionMultiplexer.sendClose:(Lsun/rmi/transport/tcp/MultiplexConnectionInfo;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/rmi/transport/tcp/MultiplexOutputStream;
Exceptions:
throws java.io.IOException
void request(int);
descriptor: (I)V
flags: (0x0000)
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.rmi.transport.tcp.MultiplexOutputStream.lock:Ljava/lang/Object;
dup
astore 2
monitorenter
1: aload 0
dup
getfield sun.rmi.transport.tcp.MultiplexOutputStream.requested:I
iload 1
iadd
putfield sun.rmi.transport.tcp.MultiplexOutputStream.requested:I
2: aload 0
getfield sun.rmi.transport.tcp.MultiplexOutputStream.lock:Ljava/lang/Object;
invokevirtual java.lang.Object.notifyAll:()V
3: aload 2
monitorexit
4: goto 7
StackMap locals: sun.rmi.transport.tcp.MultiplexOutputStream int java.lang.Object
StackMap stack: java.lang.Throwable
5: aload 2
monitorexit
6: athrow
7: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/rmi/transport/tcp/MultiplexOutputStream;
0 8 1 num I
Exception table:
from to target type
1 4 5 any
5 6 5 any
MethodParameters:
Name Flags
num
void disconnect();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.rmi.transport.tcp.MultiplexOutputStream.lock:Ljava/lang/Object;
dup
astore 1
monitorenter
1: aload 0
iconst_1
putfield sun.rmi.transport.tcp.MultiplexOutputStream.disconnected:Z
2: aload 0
getfield sun.rmi.transport.tcp.MultiplexOutputStream.lock:Ljava/lang/Object;
invokevirtual java.lang.Object.notifyAll:()V
3: aload 1
monitorexit
4: goto 7
StackMap locals: sun.rmi.transport.tcp.MultiplexOutputStream java.lang.Object
StackMap stack: java.lang.Throwable
5: aload 1
monitorexit
6: athrow
7: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/rmi/transport/tcp/MultiplexOutputStream;
Exception table:
from to target type
1 4 5 any
5 6 5 any
private void push();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=3, args_size=1
start local 0 0: aload 0
getfield sun.rmi.transport.tcp.MultiplexOutputStream.lock:Ljava/lang/Object;
dup
astore 2
monitorenter
1: goto 5
start local 1 2: StackMap locals: int java.lang.Object
StackMap stack:
aload 0
getfield sun.rmi.transport.tcp.MultiplexOutputStream.lock:Ljava/lang/Object;
invokevirtual java.lang.Object.wait:()V
3: goto 5
StackMap locals:
StackMap stack: java.lang.InterruptedException
4: pop
end local 1 5: StackMap locals: sun.rmi.transport.tcp.MultiplexOutputStream top java.lang.Object
StackMap stack:
aload 0
getfield sun.rmi.transport.tcp.MultiplexOutputStream.requested:I
dup
istore 1
start local 1 6: iconst_1
if_icmpge 7
aload 0
getfield sun.rmi.transport.tcp.MultiplexOutputStream.disconnected:Z
ifeq 2
7: StackMap locals: sun.rmi.transport.tcp.MultiplexOutputStream int java.lang.Object
StackMap stack:
aload 0
getfield sun.rmi.transport.tcp.MultiplexOutputStream.disconnected:Z
ifeq 9
8: new java.io.IOException
dup
ldc "Connection closed"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
9: StackMap locals:
StackMap stack:
aload 2
monitorexit
10: goto 13
end local 1 StackMap locals: sun.rmi.transport.tcp.MultiplexOutputStream top java.lang.Object
StackMap stack: java.lang.Throwable
11: aload 2
monitorexit
12: athrow
start local 1 13: StackMap locals: sun.rmi.transport.tcp.MultiplexOutputStream int
StackMap stack:
iload 1
aload 0
getfield sun.rmi.transport.tcp.MultiplexOutputStream.pos:I
if_icmpge 25
14: aload 0
getfield sun.rmi.transport.tcp.MultiplexOutputStream.manager:Lsun/rmi/transport/tcp/ConnectionMultiplexer;
aload 0
getfield sun.rmi.transport.tcp.MultiplexOutputStream.info:Lsun/rmi/transport/tcp/MultiplexConnectionInfo;
aload 0
getfield sun.rmi.transport.tcp.MultiplexOutputStream.buffer:[B
iconst_0
iload 1
invokevirtual sun.rmi.transport.tcp.ConnectionMultiplexer.sendTransmit:(Lsun/rmi/transport/tcp/MultiplexConnectionInfo;[BII)V
15: aload 0
getfield sun.rmi.transport.tcp.MultiplexOutputStream.buffer:[B
iload 1
16: aload 0
getfield sun.rmi.transport.tcp.MultiplexOutputStream.buffer:[B
iconst_0
aload 0
getfield sun.rmi.transport.tcp.MultiplexOutputStream.pos:I
iload 1
isub
17: invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
18: aload 0
dup
getfield sun.rmi.transport.tcp.MultiplexOutputStream.pos:I
iload 1
isub
putfield sun.rmi.transport.tcp.MultiplexOutputStream.pos:I
19: aload 0
getfield sun.rmi.transport.tcp.MultiplexOutputStream.lock:Ljava/lang/Object;
dup
astore 2
monitorenter
20: aload 0
dup
getfield sun.rmi.transport.tcp.MultiplexOutputStream.requested:I
iload 1
isub
putfield sun.rmi.transport.tcp.MultiplexOutputStream.requested:I
21: aload 2
monitorexit
22: goto 33
StackMap locals: sun.rmi.transport.tcp.MultiplexOutputStream int java.lang.Object
StackMap stack: java.lang.Throwable
23: aload 2
monitorexit
24: athrow
25: StackMap locals:
StackMap stack:
aload 0
getfield sun.rmi.transport.tcp.MultiplexOutputStream.manager:Lsun/rmi/transport/tcp/ConnectionMultiplexer;
aload 0
getfield sun.rmi.transport.tcp.MultiplexOutputStream.info:Lsun/rmi/transport/tcp/MultiplexConnectionInfo;
aload 0
getfield sun.rmi.transport.tcp.MultiplexOutputStream.buffer:[B
iconst_0
aload 0
getfield sun.rmi.transport.tcp.MultiplexOutputStream.pos:I
invokevirtual sun.rmi.transport.tcp.ConnectionMultiplexer.sendTransmit:(Lsun/rmi/transport/tcp/MultiplexConnectionInfo;[BII)V
26: aload 0
getfield sun.rmi.transport.tcp.MultiplexOutputStream.lock:Ljava/lang/Object;
dup
astore 2
monitorenter
27: aload 0
dup
getfield sun.rmi.transport.tcp.MultiplexOutputStream.requested:I
aload 0
getfield sun.rmi.transport.tcp.MultiplexOutputStream.pos:I
isub
putfield sun.rmi.transport.tcp.MultiplexOutputStream.requested:I
28: aload 2
monitorexit
29: goto 32
StackMap locals: sun.rmi.transport.tcp.MultiplexOutputStream int java.lang.Object
StackMap stack: java.lang.Throwable
30: aload 2
monitorexit
31: athrow
32: StackMap locals:
StackMap stack:
aload 0
iconst_0
putfield sun.rmi.transport.tcp.MultiplexOutputStream.pos:I
33: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 34 0 this Lsun/rmi/transport/tcp/MultiplexOutputStream;
2 5 1 local_requested I
6 11 1 local_requested I
13 34 1 local_requested I
Exception table:
from to target type
2 3 4 Class java.lang.InterruptedException
1 10 11 any
11 12 11 any
20 22 23 any
23 24 23 any
27 29 30 any
30 31 30 any
Exceptions:
throws java.io.IOException
}
SourceFile: "MultiplexOutputStream.java"