public class com.oracle.truffle.llvm.runtime.options.TargetStream extends java.io.PrintStream
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: com.oracle.truffle.llvm.runtime.options.TargetStream
  super_class: java.io.PrintStream
{
  private boolean needsDisposal;
    descriptor: Z
    flags: (0x0002) ACC_PRIVATE

  private static final java.lang.String FILE_TARGET_PREFIX;
    descriptor: Ljava/lang/String;
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
    ConstantValue: "file://"

  public void <init>(com.oracle.truffle.api.TruffleLanguage$Env, java.lang.String);
    descriptor: (Lcom/oracle/truffle/api/TruffleLanguage$Env;Ljava/lang/String;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=3, args_size=3
        start local 0 // com.oracle.truffle.llvm.runtime.options.TargetStream this
        start local 1 // com.oracle.truffle.api.TruffleLanguage$Env env
        start local 2 // java.lang.String target
         0: .line 47
            aload 0 /* this */
            aload 1 /* env */
            aload 2 /* target */
            invokestatic com.oracle.truffle.llvm.runtime.options.TargetStream.makeStream:(Lcom/oracle/truffle/api/TruffleLanguage$Env;Ljava/lang/String;)Ljava/io/OutputStream;
            invokespecial java.io.PrintStream.<init>:(Ljava/io/OutputStream;)V
         1: .line 44
            aload 0 /* this */
            iconst_0
            putfield com.oracle.truffle.llvm.runtime.options.TargetStream.needsDisposal:Z
         2: .line 48
            aload 0 /* this */
            aload 2 /* target */
            invokestatic com.oracle.truffle.llvm.runtime.options.TargetStream.needsDisposal:(Ljava/lang/String;)Z
            putfield com.oracle.truffle.llvm.runtime.options.TargetStream.needsDisposal:Z
         3: .line 49
            return
        end local 2 // java.lang.String target
        end local 1 // com.oracle.truffle.api.TruffleLanguage$Env env
        end local 0 // com.oracle.truffle.llvm.runtime.options.TargetStream this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    4     0    this  Lcom/oracle/truffle/llvm/runtime/options/TargetStream;
            0    4     1     env  Lcom/oracle/truffle/api/TruffleLanguage$Env;
            0    4     2  target  Ljava/lang/String;
    MethodParameters:
        Name  Flags
      env     
      target  

  public void dispose();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // com.oracle.truffle.llvm.runtime.options.TargetStream this
         0: .line 52
            aload 0 /* this */
            invokevirtual com.oracle.truffle.llvm.runtime.options.TargetStream.flush:()V
         1: .line 53
            aload 0 /* this */
            getfield com.oracle.truffle.llvm.runtime.options.TargetStream.needsDisposal:Z
            ifeq 3
         2: .line 54
            aload 0 /* this */
            invokevirtual com.oracle.truffle.llvm.runtime.options.TargetStream.close:()V
         3: .line 56
      StackMap locals:
      StackMap stack:
            return
        end local 0 // com.oracle.truffle.llvm.runtime.options.TargetStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    4     0  this  Lcom/oracle/truffle/llvm/runtime/options/TargetStream;

  private static boolean needsDisposal(java.lang.String);
    descriptor: (Ljava/lang/String;)Z
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=2, locals=2, args_size=1
        start local 0 // java.lang.String target
         0: .line 59
            aload 0 /* target */
            getstatic java.util.Locale.ROOT:Ljava/util/Locale;
            invokevirtual java.lang.String.toLowerCase:(Ljava/util/Locale;)Ljava/lang/String;
            dup
            astore 1
            invokevirtual java.lang.String.hashCode:()I
            lookupswitch { // 3
           -892406686: 1
           -892396981: 2
              3569038: 3
              default: 5
          }
      StackMap locals: java.lang.String
      StackMap stack:
         1: aload 1
            ldc "stderr"
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ifne 4
            goto 5
      StackMap locals:
      StackMap stack:
         2: aload 1
            ldc "stdout"
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ifne 4
            goto 5
      StackMap locals:
      StackMap stack:
         3: aload 1
            ldc "true"
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ifne 4
            goto 5
         4: .line 63
      StackMap locals:
      StackMap stack:
            iconst_0
            ireturn
         5: .line 65
      StackMap locals:
      StackMap stack:
            iconst_1
            ireturn
        end local 0 // java.lang.String target
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    6     0  target  Ljava/lang/String;
    MethodParameters:
        Name  Flags
      target  

  private static java.io.OutputStream makeStream(com.oracle.truffle.api.TruffleLanguage$Env, java.lang.String);
    descriptor: (Lcom/oracle/truffle/api/TruffleLanguage$Env;Ljava/lang/String;)Ljava/io/OutputStream;
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=7, locals=5, args_size=2
        start local 0 // com.oracle.truffle.api.TruffleLanguage$Env env
        start local 1 // java.lang.String target
         0: .line 72
            aload 1 /* target */
            ifnonnull 2
         1: .line 73
            new java.lang.IllegalArgumentException
            dup
            ldc "Target unspecified!"
            invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
            athrow
         2: .line 76
      StackMap locals:
      StackMap stack:
            aload 1 /* target */
            getstatic java.util.Locale.ROOT:Ljava/util/Locale;
            invokevirtual java.lang.String.toLowerCase:(Ljava/util/Locale;)Ljava/lang/String;
            dup
            astore 2
            invokevirtual java.lang.String.hashCode:()I
            lookupswitch { // 3
           -892406686: 3
           -892396981: 4
              3569038: 5
              default: 8
          }
      StackMap locals: java.lang.String
      StackMap stack:
         3: aload 2
            ldc "stderr"
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ifne 7
            goto 8
      StackMap locals:
      StackMap stack:
         4: aload 2
            ldc "stdout"
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ifne 6
            goto 8
      StackMap locals:
      StackMap stack:
         5: aload 2
            ldc "true"
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ifne 6
            goto 8
         6: .line 79
      StackMap locals:
      StackMap stack:
            aload 0 /* env */
            invokevirtual com.oracle.truffle.api.TruffleLanguage$Env.out:()Ljava/io/OutputStream;
            areturn
         7: .line 82
      StackMap locals:
      StackMap stack:
            aload 0 /* env */
            invokevirtual com.oracle.truffle.api.TruffleLanguage$Env.err:()Ljava/io/OutputStream;
            areturn
         8: .line 85
      StackMap locals:
      StackMap stack:
            aload 1 /* target */
            ldc "file://"
            invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
            ifeq 15
         9: .line 86
            aload 1 /* target */
            ldc "file://"
            invokevirtual java.lang.String.length:()I
            invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
            astore 3 /* fileName */
        start local 3 // java.lang.String fileName
        10: .line 88
            aload 0 /* env */
            aload 3 /* fileName */
            invokevirtual com.oracle.truffle.api.TruffleLanguage$Env.getPublicTruffleFile:(Ljava/lang/String;)Lcom/oracle/truffle/api/TruffleFile;
            astore 4 /* file */
        start local 4 // com.oracle.truffle.api.TruffleFile file
        11: .line 89
            new java.io.BufferedOutputStream
            dup
            aload 4 /* file */
            iconst_2
            anewarray java.nio.file.OpenOption
            dup
            iconst_0
            getstatic java.nio.file.StandardOpenOption.CREATE:Ljava/nio/file/StandardOpenOption;
            aastore
            dup
            iconst_1
            getstatic java.nio.file.StandardOpenOption.TRUNCATE_EXISTING:Ljava/nio/file/StandardOpenOption;
            aastore
            invokevirtual com.oracle.truffle.api.TruffleFile.newOutputStream:([Ljava/nio/file/OpenOption;)Ljava/io/OutputStream;
            invokespecial java.io.BufferedOutputStream.<init>:(Ljava/io/OutputStream;)V
        12: areturn
        end local 4 // com.oracle.truffle.api.TruffleFile file
        13: .line 90
      StackMap locals: com.oracle.truffle.api.TruffleLanguage$Env java.lang.String java.lang.String java.lang.String
      StackMap stack: java.io.IOException
            astore 4 /* e */
        start local 4 // java.io.IOException e
        14: .line 91
            new java.lang.IllegalArgumentException
            dup
            new java.lang.StringBuilder
            dup
            ldc "Invalid file: "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 3 /* fileName */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            aload 4 /* e */
            invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
            athrow
        end local 4 // java.io.IOException e
        end local 3 // java.lang.String fileName
        15: .line 94
      StackMap locals:
      StackMap stack:
            new java.lang.IllegalArgumentException
            dup
            new java.lang.StringBuilder
            dup
            ldc "Invalid target: "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 1 /* target */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
            athrow
        end local 1 // java.lang.String target
        end local 0 // com.oracle.truffle.api.TruffleLanguage$Env env
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0   16     0       env  Lcom/oracle/truffle/api/TruffleLanguage$Env;
            0   16     1    target  Ljava/lang/String;
           10   15     3  fileName  Ljava/lang/String;
           11   13     4      file  Lcom/oracle/truffle/api/TruffleFile;
           14   15     4         e  Ljava/io/IOException;
      Exception table:
        from    to  target  type
          10    12      13  Class java.io.IOException
    MethodParameters:
        Name  Flags
      env     
      target  
}
SourceFile: "TargetStream.java"
InnerClasses:
  public final Env = com.oracle.truffle.api.TruffleLanguage$Env of com.oracle.truffle.api.TruffleLanguage