class sun.rmi.server.PipeWriter implements java.lang.Runnable
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.rmi.server.PipeWriter
super_class: java.lang.Object
{
private java.io.ByteArrayOutputStream bufOut;
descriptor: Ljava/io/ByteArrayOutputStream;
flags: (0x0002) ACC_PRIVATE
private int cLast;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private byte[] currSep;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
private java.io.PrintWriter out;
descriptor: Ljava/io/PrintWriter;
flags: (0x0002) ACC_PRIVATE
private java.io.InputStream in;
descriptor: Ljava/io/InputStream;
flags: (0x0002) ACC_PRIVATE
private java.lang.String pipeString;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private java.lang.String execString;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private static java.lang.String lineSeparator;
descriptor: Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static int lineSeparatorLength;
descriptor: I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static int numExecs;
descriptor: I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: iconst_0
putstatic sun.rmi.server.PipeWriter.numExecs:I
1: new sun.security.action.GetPropertyAction
dup
ldc "line.separator"
invokespecial sun.security.action.GetPropertyAction.<init>:(Ljava/lang/String;)V
2: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.String
putstatic sun.rmi.server.PipeWriter.lineSeparator:Ljava/lang/String;
3: getstatic sun.rmi.server.PipeWriter.lineSeparator:Ljava/lang/String;
invokevirtual java.lang.String.length:()I
putstatic sun.rmi.server.PipeWriter.lineSeparatorLength:I
4: return
LocalVariableTable:
Start End Slot Name Signature
private void <init>(java.io.InputStream, java.io.OutputStream, java.lang.String, int);
descriptor: (Ljava/io/InputStream;Ljava/io/OutputStream;Ljava/lang/String;I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, 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
aload 1
putfield sun.rmi.server.PipeWriter.in:Ljava/io/InputStream;
2: aload 0
new java.io.PrintWriter
dup
aload 2
invokespecial java.io.PrintWriter.<init>:(Ljava/io/OutputStream;)V
putfield sun.rmi.server.PipeWriter.out:Ljava/io/PrintWriter;
3: aload 0
new java.io.ByteArrayOutputStream
dup
invokespecial java.io.ByteArrayOutputStream.<init>:()V
putfield sun.rmi.server.PipeWriter.bufOut:Ljava/io/ByteArrayOutputStream;
4: aload 0
getstatic sun.rmi.server.PipeWriter.lineSeparatorLength:I
newarray 8
putfield sun.rmi.server.PipeWriter.currSep:[B
5: aload 0
new java.lang.StringBuilder
dup
ldc ":ExecGroup-"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
6: iload 4
invokestatic java.lang.Integer.toString:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
bipush 58
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
bipush 58
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
7: putfield sun.rmi.server.PipeWriter.execString:Ljava/lang/String;
8: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lsun/rmi/server/PipeWriter;
0 9 1 in Ljava/io/InputStream;
0 9 2 out Ljava/io/OutputStream;
0 9 3 tag Ljava/lang/String;
0 9 4 nExecs I
MethodParameters:
Name Flags
in
out
tag
nExecs
public void run();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=1
start local 0 0: sipush 256
newarray 8
astore 1
start local 1 1: goto 3
start local 2 2: StackMap locals: byte[] int
StackMap stack:
aload 0
aload 1
iconst_0
iload 2
invokevirtual sun.rmi.server.PipeWriter.write:([BII)V
end local 2 3: StackMap locals:
StackMap stack:
aload 0
getfield sun.rmi.server.PipeWriter.in:Ljava/io/InputStream;
aload 1
invokevirtual java.io.InputStream.read:([B)I
dup
istore 2
start local 2 4: iconst_m1
if_icmpne 2
5: aload 0
getfield sun.rmi.server.PipeWriter.bufOut:Ljava/io/ByteArrayOutputStream;
invokevirtual java.io.ByteArrayOutputStream.toString:()Ljava/lang/String;
astore 3
start local 3 6: aload 0
getfield sun.rmi.server.PipeWriter.bufOut:Ljava/io/ByteArrayOutputStream;
invokevirtual java.io.ByteArrayOutputStream.reset:()V
7: aload 3
invokevirtual java.lang.String.length:()I
ifle 12
8: aload 0
getfield sun.rmi.server.PipeWriter.out:Ljava/io/PrintWriter;
new java.lang.StringBuilder
dup
aload 0
invokevirtual sun.rmi.server.PipeWriter.createAnnotation:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintWriter.println:(Ljava/lang/String;)V
9: aload 0
getfield sun.rmi.server.PipeWriter.out:Ljava/io/PrintWriter;
invokevirtual java.io.PrintWriter.flush:()V
end local 3 10: goto 12
end local 2 StackMap locals:
StackMap stack: java.io.IOException
11: pop
12: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lsun/rmi/server/PipeWriter;
1 13 1 buf [B
2 3 2 count I
4 11 2 count I
6 10 3 lastInBuffer Ljava/lang/String;
Exception table:
from to target type
1 10 11 Class java.io.IOException
private void write(byte[], int, int);
descriptor: ([BII)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 3
ifge 2
1: new java.lang.ArrayIndexOutOfBoundsException
dup
iload 3
invokespecial java.lang.ArrayIndexOutOfBoundsException.<init>:(I)V
athrow
2: StackMap locals:
StackMap stack:
iconst_0
istore 4
start local 4 3: goto 6
4: StackMap locals: int
StackMap stack:
aload 0
aload 1
iload 2
iload 4
iadd
baload
invokevirtual sun.rmi.server.PipeWriter.write:(B)V
5: iinc 4 1
StackMap locals:
StackMap stack:
6: iload 4
iload 3
if_icmplt 4
end local 4 7: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/rmi/server/PipeWriter;
0 8 1 b [B
0 8 2 off I
0 8 3 len I
3 7 4 i I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b
off
len
private void write(byte);
descriptor: (B)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: iconst_1
istore 2
goto 4
2: StackMap locals: int
StackMap stack:
aload 0
getfield sun.rmi.server.PipeWriter.currSep:[B
iload 2
iconst_1
isub
aload 0
getfield sun.rmi.server.PipeWriter.currSep:[B
iload 2
baload
bastore
3: iinc 2 1
StackMap locals:
StackMap stack:
4: iload 2
aload 0
getfield sun.rmi.server.PipeWriter.currSep:[B
arraylength
if_icmplt 2
5: aload 0
getfield sun.rmi.server.PipeWriter.currSep:[B
iload 2
iconst_1
isub
iload 1
bastore
6: aload 0
getfield sun.rmi.server.PipeWriter.bufOut:Ljava/io/ByteArrayOutputStream;
iload 1
invokevirtual java.io.ByteArrayOutputStream.write:(I)V
7: aload 0
getfield sun.rmi.server.PipeWriter.cLast:I
getstatic sun.rmi.server.PipeWriter.lineSeparatorLength:I
iconst_1
isub
if_icmplt 17
8: getstatic sun.rmi.server.PipeWriter.lineSeparator:Ljava/lang/String;
new java.lang.String
dup
aload 0
getfield sun.rmi.server.PipeWriter.currSep:[B
invokespecial java.lang.String.<init>:([B)V
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 17
9: aload 0
iconst_0
putfield sun.rmi.server.PipeWriter.cLast:I
10: aload 0
getfield sun.rmi.server.PipeWriter.out:Ljava/io/PrintWriter;
new java.lang.StringBuilder
dup
aload 0
invokevirtual sun.rmi.server.PipeWriter.createAnnotation:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield sun.rmi.server.PipeWriter.bufOut:Ljava/io/ByteArrayOutputStream;
invokevirtual java.io.ByteArrayOutputStream.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintWriter.print:(Ljava/lang/String;)V
11: aload 0
getfield sun.rmi.server.PipeWriter.out:Ljava/io/PrintWriter;
invokevirtual java.io.PrintWriter.flush:()V
12: aload 0
getfield sun.rmi.server.PipeWriter.bufOut:Ljava/io/ByteArrayOutputStream;
invokevirtual java.io.ByteArrayOutputStream.reset:()V
13: aload 0
getfield sun.rmi.server.PipeWriter.out:Ljava/io/PrintWriter;
invokevirtual java.io.PrintWriter.checkError:()Z
ifeq 18
14: new java.io.IOException
dup
15: ldc "PipeWriter: IO Exception when writing to output stream."
16: invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
17: StackMap locals:
StackMap stack:
aload 0
dup
getfield sun.rmi.server.PipeWriter.cLast:I
iconst_1
iadd
putfield sun.rmi.server.PipeWriter.cLast:I
18: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Lsun/rmi/server/PipeWriter;
0 19 1 b B
1 19 2 i I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b
private java.lang.String createAnnotation();
descriptor: ()Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
new java.util.Date
dup
invokespecial java.util.Date.<init>:()V
invokevirtual java.util.Date.toString:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
1: aload 0
getfield sun.rmi.server.PipeWriter.execString:Ljava/lang/String;
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 Lsun/rmi/server/PipeWriter;
static void plugTogetherPair(java.io.InputStream, java.io.OutputStream, java.io.InputStream, java.io.OutputStream);
descriptor: (Ljava/io/InputStream;Ljava/io/OutputStream;Ljava/io/InputStream;Ljava/io/OutputStream;)V
flags: (0x0008) ACC_STATIC
Code:
stack=8, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aconst_null
astore 4
start local 4 1: aconst_null
astore 5
start local 5 2: invokestatic sun.rmi.server.PipeWriter.getNumExec:()I
istore 6
start local 6 3: new sun.rmi.runtime.NewThreadAction
dup
new sun.rmi.server.PipeWriter
dup
aload 0
aload 1
ldc "out"
iload 6
invokespecial sun.rmi.server.PipeWriter.<init>:(Ljava/io/InputStream;Ljava/io/OutputStream;Ljava/lang/String;I)V
4: ldc "out"
iconst_1
5: invokespecial sun.rmi.runtime.NewThreadAction.<init>:(Ljava/lang/Runnable;Ljava/lang/String;Z)V
6: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.Thread
astore 4
7: new sun.rmi.runtime.NewThreadAction
dup
new sun.rmi.server.PipeWriter
dup
aload 2
aload 3
ldc "err"
iload 6
invokespecial sun.rmi.server.PipeWriter.<init>:(Ljava/io/InputStream;Ljava/io/OutputStream;Ljava/lang/String;I)V
8: ldc "err"
iconst_1
9: invokespecial sun.rmi.runtime.NewThreadAction.<init>:(Ljava/lang/Runnable;Ljava/lang/String;Z)V
10: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.Thread
astore 5
11: aload 4
invokevirtual java.lang.Thread.start:()V
12: aload 5
invokevirtual java.lang.Thread.start:()V
13: return
end local 6 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 14 0 in Ljava/io/InputStream;
0 14 1 out Ljava/io/OutputStream;
0 14 2 in1 Ljava/io/InputStream;
0 14 3 out1 Ljava/io/OutputStream;
1 14 4 inThread Ljava/lang/Thread;
2 14 5 outThread Ljava/lang/Thread;
3 14 6 nExecs I
MethodParameters:
Name Flags
in
out
in1
out1
private static synchronized int getNumExec();
descriptor: ()I
flags: (0x002a) ACC_PRIVATE, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=0, args_size=0
0: getstatic sun.rmi.server.PipeWriter.numExecs:I
dup
iconst_1
iadd
putstatic sun.rmi.server.PipeWriter.numExecs:I
ireturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "Activation.java"