public class org.apache.fop.pdf.TempFileStreamCache implements org.apache.fop.pdf.StreamCache
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: org.apache.fop.pdf.TempFileStreamCache
  super_class: java.lang.Object
{
  private java.io.OutputStream output;
    descriptor: Ljava/io/OutputStream;
    flags: (0x0002) ACC_PRIVATE

  private java.io.File tempFile;
    descriptor: Ljava/io/File;
    flags: (0x0002) ACC_PRIVATE

  public void <init>();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=1, args_size=1
        start local 0 // org.apache.fop.pdf.TempFileStreamCache this
         0: .line 49
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 50
            aload 0 /* this */
            ldc "org.apache.fop.pdf.StreamCache-"
         2: .line 51
            ldc ".temp"
         3: .line 50
            invokestatic java.io.File.createTempFile:(Ljava/lang/String;Ljava/lang/String;)Ljava/io/File;
            putfield org.apache.fop.pdf.TempFileStreamCache.tempFile:Ljava/io/File;
         4: .line 52
            aload 0 /* this */
            getfield org.apache.fop.pdf.TempFileStreamCache.tempFile:Ljava/io/File;
            invokevirtual java.io.File.deleteOnExit:()V
         5: .line 53
            return
        end local 0 // org.apache.fop.pdf.TempFileStreamCache this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    6     0  this  Lorg/apache/fop/pdf/TempFileStreamCache;
    Exceptions:
      throws java.io.IOException

  public java.io.OutputStream getOutputStream();
    descriptor: ()Ljava/io/OutputStream;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=6, locals=1, args_size=1
        start local 0 // org.apache.fop.pdf.TempFileStreamCache this
         0: .line 63
            aload 0 /* this */
            getfield org.apache.fop.pdf.TempFileStreamCache.output:Ljava/io/OutputStream;
            ifnonnull 4
         1: .line 64
            aload 0 /* this */
            new java.io.BufferedOutputStream
            dup
         2: .line 65
            new java.io.FileOutputStream
            dup
            aload 0 /* this */
            getfield org.apache.fop.pdf.TempFileStreamCache.tempFile:Ljava/io/File;
            invokespecial java.io.FileOutputStream.<init>:(Ljava/io/File;)V
            invokespecial java.io.BufferedOutputStream.<init>:(Ljava/io/OutputStream;)V
         3: .line 64
            putfield org.apache.fop.pdf.TempFileStreamCache.output:Ljava/io/OutputStream;
         4: .line 67
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.apache.fop.pdf.TempFileStreamCache.output:Ljava/io/OutputStream;
            areturn
        end local 0 // org.apache.fop.pdf.TempFileStreamCache this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    5     0  this  Lorg/apache/fop/pdf/TempFileStreamCache;
    Exceptions:
      throws java.io.IOException

  public void write(byte[]);
    descriptor: ([B)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // org.apache.fop.pdf.TempFileStreamCache this
        start local 1 // byte[] data
         0: .line 74
            aload 0 /* this */
            invokevirtual org.apache.fop.pdf.TempFileStreamCache.getOutputStream:()Ljava/io/OutputStream;
            aload 1 /* data */
            invokevirtual java.io.OutputStream.write:([B)V
         1: .line 75
            return
        end local 1 // byte[] data
        end local 0 // org.apache.fop.pdf.TempFileStreamCache this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Lorg/apache/fop/pdf/TempFileStreamCache;
            0    2     1  data  [B
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      data  

  public int outputContents(java.io.OutputStream);
    descriptor: (Ljava/io/OutputStream;)I
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=5, args_size=2
        start local 0 // org.apache.fop.pdf.TempFileStreamCache this
        start local 1 // java.io.OutputStream out
         0: .line 85
            aload 0 /* this */
            getfield org.apache.fop.pdf.TempFileStreamCache.output:Ljava/io/OutputStream;
            ifnonnull 2
         1: .line 86
            iconst_0
            ireturn
         2: .line 89
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.apache.fop.pdf.TempFileStreamCache.output:Ljava/io/OutputStream;
            invokevirtual java.io.OutputStream.close:()V
         3: .line 90
            aload 0 /* this */
            aconst_null
            putfield org.apache.fop.pdf.TempFileStreamCache.output:Ljava/io/OutputStream;
         4: .line 93
            new java.io.FileInputStream
            dup
            aload 0 /* this */
            getfield org.apache.fop.pdf.TempFileStreamCache.tempFile:Ljava/io/File;
            invokespecial java.io.FileInputStream.<init>:(Ljava/io/File;)V
            astore 2 /* input */
        start local 2 // java.io.InputStream input
         5: .line 95
            aload 2 /* input */
            aload 1 /* out */
            invokestatic org.apache.commons.io.IOUtils.copy:(Ljava/io/InputStream;Ljava/io/OutputStream;)I
            istore 4
         6: .line 97
            aload 2 /* input */
            invokestatic org.apache.commons.io.IOUtils.closeQuietly:(Ljava/io/InputStream;)V
         7: .line 95
            iload 4
            ireturn
         8: .line 96
      StackMap locals: org.apache.fop.pdf.TempFileStreamCache java.io.OutputStream java.io.InputStream
      StackMap stack: java.lang.Throwable
            astore 3
         9: .line 97
            aload 2 /* input */
            invokestatic org.apache.commons.io.IOUtils.closeQuietly:(Ljava/io/InputStream;)V
        10: .line 98
            aload 3
            athrow
        end local 2 // java.io.InputStream input
        end local 1 // java.io.OutputStream out
        end local 0 // org.apache.fop.pdf.TempFileStreamCache this
      LocalVariableTable:
        Start  End  Slot   Name  Signature
            0   11     0   this  Lorg/apache/fop/pdf/TempFileStreamCache;
            0   11     1    out  Ljava/io/OutputStream;
            5   11     2  input  Ljava/io/InputStream;
      Exception table:
        from    to  target  type
           5     6       8  any
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      out   

  public int getSize();
    descriptor: ()I
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // org.apache.fop.pdf.TempFileStreamCache this
         0: .line 108
            aload 0 /* this */
            getfield org.apache.fop.pdf.TempFileStreamCache.output:Ljava/io/OutputStream;
            ifnull 2
         1: .line 109
            aload 0 /* this */
            getfield org.apache.fop.pdf.TempFileStreamCache.output:Ljava/io/OutputStream;
            invokevirtual java.io.OutputStream.flush:()V
         2: .line 111
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.apache.fop.pdf.TempFileStreamCache.tempFile:Ljava/io/File;
            invokevirtual java.io.File.length:()J
            l2i
            ireturn
        end local 0 // org.apache.fop.pdf.TempFileStreamCache this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  this  Lorg/apache/fop/pdf/TempFileStreamCache;
    Exceptions:
      throws java.io.IOException

  public void clear();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // org.apache.fop.pdf.TempFileStreamCache this
         0: .line 120
            aload 0 /* this */
            getfield org.apache.fop.pdf.TempFileStreamCache.output:Ljava/io/OutputStream;
            ifnull 3
         1: .line 121
            aload 0 /* this */
            getfield org.apache.fop.pdf.TempFileStreamCache.output:Ljava/io/OutputStream;
            invokevirtual java.io.OutputStream.close:()V
         2: .line 122
            aload 0 /* this */
            aconst_null
            putfield org.apache.fop.pdf.TempFileStreamCache.output:Ljava/io/OutputStream;
         3: .line 124
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.apache.fop.pdf.TempFileStreamCache.tempFile:Ljava/io/File;
            invokevirtual java.io.File.exists:()Z
            ifeq 5
         4: .line 125
            aload 0 /* this */
            getfield org.apache.fop.pdf.TempFileStreamCache.tempFile:Ljava/io/File;
            invokevirtual java.io.File.delete:()Z
            pop
         5: .line 127
      StackMap locals:
      StackMap stack:
            return
        end local 0 // org.apache.fop.pdf.TempFileStreamCache this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    6     0  this  Lorg/apache/fop/pdf/TempFileStreamCache;
    Exceptions:
      throws java.io.IOException
}
SourceFile: "TempFileStreamCache.java"