class com.sun.tools.example.trace.StreamRedirectThread extends java.lang.Thread
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.sun.tools.example.trace.StreamRedirectThread
super_class: java.lang.Thread
{
private final java.io.Reader in;
descriptor: Ljava/io/Reader;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.io.Writer out;
descriptor: Ljava/io/Writer;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private static final int BUFFER_SIZE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 2048
void <init>(java.lang.String, java.io.InputStream, java.io.OutputStream);
descriptor: (Ljava/lang/String;Ljava/io/InputStream;Ljava/io/OutputStream;)V
flags: (0x0000)
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
invokespecial java.lang.Thread.<init>:(Ljava/lang/String;)V
1: aload 0
new java.io.InputStreamReader
dup
aload 2
invokespecial java.io.InputStreamReader.<init>:(Ljava/io/InputStream;)V
putfield com.sun.tools.example.trace.StreamRedirectThread.in:Ljava/io/Reader;
2: aload 0
new java.io.OutputStreamWriter
dup
aload 3
invokespecial java.io.OutputStreamWriter.<init>:(Ljava/io/OutputStream;)V
putfield com.sun.tools.example.trace.StreamRedirectThread.out:Ljava/io/Writer;
3: aload 0
bipush 9
invokevirtual com.sun.tools.example.trace.StreamRedirectThread.setPriority:(I)V
4: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/sun/tools/example/trace/StreamRedirectThread;
0 5 1 name Ljava/lang/String;
0 5 2 in Ljava/io/InputStream;
0 5 3 out Ljava/io/OutputStream;
MethodParameters:
Name Flags
name
in
out
public void run();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: sipush 2048
newarray 5
astore 1
start local 1 1: goto 3
start local 2 2: StackMap locals: char[] int
StackMap stack:
aload 0
getfield com.sun.tools.example.trace.StreamRedirectThread.out:Ljava/io/Writer;
aload 1
iconst_0
iload 2
invokevirtual java.io.Writer.write:([CII)V
end local 2 3: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.tools.example.trace.StreamRedirectThread.in:Ljava/io/Reader;
aload 1
iconst_0
sipush 2048
invokevirtual java.io.Reader.read:([CII)I
dup
istore 2
start local 2 4: ifge 2
5: aload 0
getfield com.sun.tools.example.trace.StreamRedirectThread.out:Ljava/io/Writer;
invokevirtual java.io.Writer.flush:()V
end local 2 end local 1 6: goto 9
StackMap locals: com.sun.tools.example.trace.StreamRedirectThread
StackMap stack: java.io.IOException
7: astore 1
start local 1 8: getstatic java.lang.System.err:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "Child I/O Transfer - "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
end local 1 9: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/sun/tools/example/trace/StreamRedirectThread;
1 6 1 cbuf [C
2 3 2 count I
4 6 2 count I
8 9 1 exc Ljava/io/IOException;
Exception table:
from to target type
0 6 7 Class java.io.IOException
}
SourceFile: "StreamRedirectThread.java"