class jdk.nashorn.internal.runtime.CommandExecutor$Piper implements java.lang.Runnable
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.nashorn.internal.runtime.CommandExecutor$Piper
super_class: java.lang.Object
{
private final java.io.InputStream input;
descriptor: Ljava/io/InputStream;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.io.OutputStream output;
descriptor: Ljava/io/OutputStream;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.Thread thread;
descriptor: Ljava/lang/Thread;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
void <init>(java.io.InputStream, java.io.OutputStream);
descriptor: (Ljava/io/InputStream;Ljava/io/OutputStream;)V
flags: (0x0000)
Code:
stack=5, 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
aload 1
putfield jdk.nashorn.internal.runtime.CommandExecutor$Piper.input:Ljava/io/InputStream;
2: aload 0
aload 2
putfield jdk.nashorn.internal.runtime.CommandExecutor$Piper.output:Ljava/io/OutputStream;
3: aload 0
new java.lang.Thread
dup
aload 0
ldc "$EXEC Piper"
invokespecial java.lang.Thread.<init>:(Ljava/lang/Runnable;Ljava/lang/String;)V
putfield jdk.nashorn.internal.runtime.CommandExecutor$Piper.thread:Ljava/lang/Thread;
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/nashorn/internal/runtime/CommandExecutor$Piper;
0 5 1 input Ljava/io/InputStream;
0 5 2 output Ljava/io/OutputStream;
MethodParameters:
Name Flags
input final
output final
jdk.nashorn.internal.runtime.CommandExecutor$Piper start();
descriptor: ()Ljdk/nashorn/internal/runtime/CommandExecutor$Piper;
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.nashorn.internal.runtime.CommandExecutor$Piper.thread:Ljava/lang/Thread;
iconst_1
invokevirtual java.lang.Thread.setDaemon:(Z)V
1: aload 0
getfield jdk.nashorn.internal.runtime.CommandExecutor$Piper.thread:Ljava/lang/Thread;
invokevirtual java.lang.Thread.start:()V
2: aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/nashorn/internal/runtime/CommandExecutor$Piper;
public void run();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=1
start local 0 0: sipush 1024
newarray 8
astore 1
start local 1 1: goto 3
start local 2 2: StackMap locals: byte[] int
StackMap stack:
aload 0
getfield jdk.nashorn.internal.runtime.CommandExecutor$Piper.output:Ljava/io/OutputStream;
aload 1
iconst_0
iload 2
invokevirtual java.io.OutputStream.write:([BII)V
end local 2 3: StackMap locals:
StackMap stack:
iconst_m1
aload 0
getfield jdk.nashorn.internal.runtime.CommandExecutor$Piper.input:Ljava/io/InputStream;
aload 1
iconst_0
aload 1
arraylength
invokevirtual java.io.InputStream.read:([BII)I
dup
istore 2
start local 2 4: if_icmplt 2
end local 2 end local 1 5: goto 16
StackMap locals: jdk.nashorn.internal.runtime.CommandExecutor$Piper
StackMap stack: java.lang.Exception
6: astore 1
start local 1 7: new java.lang.RuntimeException
dup
ldc "Broken pipe"
aload 1
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 1 8: StackMap locals:
StackMap stack: java.lang.Throwable
astore 3
9: aload 0
getfield jdk.nashorn.internal.runtime.CommandExecutor$Piper.input:Ljava/io/InputStream;
invokevirtual java.io.InputStream.close:()V
10: goto 12
StackMap locals: jdk.nashorn.internal.runtime.CommandExecutor$Piper top top java.lang.Throwable
StackMap stack: java.io.IOException
11: pop
12: StackMap locals:
StackMap stack:
aload 0
getfield jdk.nashorn.internal.runtime.CommandExecutor$Piper.output:Ljava/io/OutputStream;
invokevirtual java.io.OutputStream.close:()V
13: goto 15
StackMap locals:
StackMap stack: java.io.IOException
14: pop
15: StackMap locals:
StackMap stack:
aload 3
athrow
16: StackMap locals: jdk.nashorn.internal.runtime.CommandExecutor$Piper
StackMap stack:
aload 0
getfield jdk.nashorn.internal.runtime.CommandExecutor$Piper.input:Ljava/io/InputStream;
invokevirtual java.io.InputStream.close:()V
17: goto 19
StackMap locals:
StackMap stack: java.io.IOException
18: pop
19: StackMap locals:
StackMap stack:
aload 0
getfield jdk.nashorn.internal.runtime.CommandExecutor$Piper.output:Ljava/io/OutputStream;
invokevirtual java.io.OutputStream.close:()V
20: goto 22
StackMap locals:
StackMap stack: java.io.IOException
21: pop
22: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 this Ljdk/nashorn/internal/runtime/CommandExecutor$Piper;
1 5 1 b [B
2 3 2 read I
4 5 2 read I
7 8 1 e Ljava/lang/Exception;
Exception table:
from to target type
0 5 6 Class java.lang.Exception
0 8 8 any
9 10 11 Class java.io.IOException
12 13 14 Class java.io.IOException
16 17 18 Class java.io.IOException
19 20 21 Class java.io.IOException
public void join();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.nashorn.internal.runtime.CommandExecutor$Piper.thread:Ljava/lang/Thread;
invokevirtual java.lang.Thread.join:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/nashorn/internal/runtime/CommandExecutor$Piper;
Exceptions:
throws java.lang.InterruptedException
}
SourceFile: "CommandExecutor.java"
NestHost: jdk.nashorn.internal.runtime.CommandExecutor
InnerClasses:
private Piper = jdk.nashorn.internal.runtime.CommandExecutor$Piper of jdk.nashorn.internal.runtime.CommandExecutor