final class com.oracle.truffle.polyglot.PolyglotLoggers$RedirectNotificationOutputStream extends java.io.OutputStream
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: com.oracle.truffle.polyglot.PolyglotLoggers$RedirectNotificationOutputStream
super_class: java.io.OutputStream
{
private static final java.lang.String REDIRECT_FORMAT;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "[To redirect Truffle log output to a file use one of the following options:%n* '--log.file=<path>' if the option is passed using a guest language launcher.%n* '-Dpolyglot.log.file=<path>' if the option is passed using the host Java launcher.%n* Configure logging using the polyglot embedding API.]%n"
private final java.io.OutputStream delegate;
descriptor: Ljava/io/OutputStream;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private volatile boolean notificationPrinted;
descriptor: Z
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
void <init>(java.io.OutputStream);
descriptor: (Ljava/io/OutputStream;)V
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.io.OutputStream.<init>:()V
1: aload 0
aload 1
ldc "Delegate must be non null."
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
checkcast java.io.OutputStream
putfield com.oracle.truffle.polyglot.PolyglotLoggers$RedirectNotificationOutputStream.delegate:Ljava/io/OutputStream;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/oracle/truffle/polyglot/PolyglotLoggers$RedirectNotificationOutputStream;
0 3 1 delegate Ljava/io/OutputStream;
MethodParameters:
Name Flags
delegate
public void write(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual com.oracle.truffle.polyglot.PolyglotLoggers$RedirectNotificationOutputStream.printNotification:()V
1: aload 0
getfield com.oracle.truffle.polyglot.PolyglotLoggers$RedirectNotificationOutputStream.delegate:Ljava/io/OutputStream;
iload 1
invokevirtual java.io.OutputStream.write:(I)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/oracle/truffle/polyglot/PolyglotLoggers$RedirectNotificationOutputStream;
0 3 1 b I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b
public void write(byte[], int, int);
descriptor: ([BII)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokevirtual com.oracle.truffle.polyglot.PolyglotLoggers$RedirectNotificationOutputStream.printNotification:()V
1: aload 0
getfield com.oracle.truffle.polyglot.PolyglotLoggers$RedirectNotificationOutputStream.delegate:Ljava/io/OutputStream;
aload 1
iload 2
iload 3
invokevirtual java.io.OutputStream.write:([BII)V
2: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/oracle/truffle/polyglot/PolyglotLoggers$RedirectNotificationOutputStream;
0 3 1 b [B
0 3 2 off I
0 3 3 len I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b
off
len
private void printNotification();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.polyglot.PolyglotLoggers$RedirectNotificationOutputStream.notificationPrinted:Z
ifeq 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
dup
astore 1
monitorenter
3: aload 0
getfield com.oracle.truffle.polyglot.PolyglotLoggers$RedirectNotificationOutputStream.notificationPrinted:Z
ifne 8
4: new java.io.PrintStream
dup
aload 0
getfield com.oracle.truffle.polyglot.PolyglotLoggers$RedirectNotificationOutputStream.delegate:Ljava/io/OutputStream;
invokespecial java.io.PrintStream.<init>:(Ljava/io/OutputStream;)V
astore 2
start local 2 5: aload 2
ldc "[To redirect Truffle log output to a file use one of the following options:%n* '--log.file=<path>' if the option is passed using a guest language launcher.%n* '-Dpolyglot.log.file=<path>' if the option is passed using the host Java launcher.%n* Configure logging using the polyglot embedding API.]%n"
iconst_0
anewarray java.lang.Object
invokevirtual java.io.PrintStream.printf:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/PrintStream;
pop
6: aload 2
invokevirtual java.io.PrintStream.flush:()V
7: aload 0
iconst_1
putfield com.oracle.truffle.polyglot.PolyglotLoggers$RedirectNotificationOutputStream.notificationPrinted:Z
end local 2 8: StackMap locals: com.oracle.truffle.polyglot.PolyglotLoggers$RedirectNotificationOutputStream
StackMap stack:
aload 1
monitorexit
9: goto 12
StackMap locals:
StackMap stack: java.lang.Throwable
10: aload 1
monitorexit
11: athrow
12: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lcom/oracle/truffle/polyglot/PolyglotLoggers$RedirectNotificationOutputStream;
5 8 2 ps Ljava/io/PrintStream;
Exception table:
from to target type
3 9 10 any
10 11 10 any
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.polyglot.PolyglotLoggers$RedirectNotificationOutputStream.delegate:Ljava/io/OutputStream;
invokevirtual java.io.OutputStream.close:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/oracle/truffle/polyglot/PolyglotLoggers$RedirectNotificationOutputStream;
Exceptions:
throws java.io.IOException
}
SourceFile: "PolyglotLoggers.java"
NestHost: com.oracle.truffle.polyglot.PolyglotLoggers
InnerClasses:
private final RedirectNotificationOutputStream = com.oracle.truffle.polyglot.PolyglotLoggers$RedirectNotificationOutputStream of com.oracle.truffle.polyglot.PolyglotLoggers