public class javax.imageio.stream.FileCacheImageInputStream extends javax.imageio.stream.ImageInputStreamImpl
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: javax.imageio.stream.FileCacheImageInputStream
  super_class: javax.imageio.stream.ImageInputStreamImpl
{
  private java.io.InputStream stream;
    descriptor: Ljava/io/InputStream;
    flags: (0x0002) ACC_PRIVATE

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

  private java.io.RandomAccessFile cache;
    descriptor: Ljava/io/RandomAccessFile;
    flags: (0x0002) ACC_PRIVATE

  private static final int BUFFER_LENGTH;
    descriptor: I
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
    ConstantValue: 1024

  private byte[] buf;
    descriptor: [B
    flags: (0x0002) ACC_PRIVATE

  private long length;
    descriptor: J
    flags: (0x0002) ACC_PRIVATE

  private boolean foundEOF;
    descriptor: Z
    flags: (0x0002) ACC_PRIVATE

  private final java.lang.Object disposerReferent;
    descriptor: Ljava/lang/Object;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private final sun.java2d.DisposerRecord disposerRecord;
    descriptor: Lsun/java2d/DisposerRecord;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private final com.sun.imageio.stream.StreamCloser$CloseAction closeAction;
    descriptor: Lcom/sun/imageio/stream/StreamCloser$CloseAction;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  public void <init>(java.io.InputStream, java.io.File);
    descriptor: (Ljava/io/InputStream;Ljava/io/File;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=5, locals=3, args_size=3
        start local 0 // javax.imageio.stream.FileCacheImageInputStream this
        start local 1 // java.io.InputStream stream
        start local 2 // java.io.File cacheDir
         0: .line 92
            aload 0 /* this */
            invokespecial javax.imageio.stream.ImageInputStreamImpl.<init>:()V
         1: .line 54
            aload 0 /* this */
            sipush 1024
            newarray 8
            putfield javax.imageio.stream.FileCacheImageInputStream.buf:[B
         2: .line 56
            aload 0 /* this */
            lconst_0
            putfield javax.imageio.stream.FileCacheImageInputStream.length:J
         3: .line 58
            aload 0 /* this */
            iconst_0
            putfield javax.imageio.stream.FileCacheImageInputStream.foundEOF:Z
         4: .line 94
            aload 1 /* stream */
            ifnonnull 6
         5: .line 95
            new java.lang.IllegalArgumentException
            dup
            ldc "stream == null!"
            invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
            athrow
         6: .line 97
      StackMap locals: javax.imageio.stream.FileCacheImageInputStream java.io.InputStream java.io.File
      StackMap stack:
            aload 2 /* cacheDir */
            ifnull 8
            aload 2 /* cacheDir */
            invokevirtual java.io.File.isDirectory:()Z
            ifne 8
         7: .line 98
            new java.lang.IllegalArgumentException
            dup
            ldc "Not a directory!"
            invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
            athrow
         8: .line 100
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aload 1 /* stream */
            putfield javax.imageio.stream.FileCacheImageInputStream.stream:Ljava/io/InputStream;
         9: .line 101
            aload 2 /* cacheDir */
            ifnonnull 11
        10: .line 102
            aload 0 /* this */
            ldc "imageio"
            ldc ".tmp"
            iconst_0
            anewarray java.nio.file.attribute.FileAttribute
            invokestatic java.nio.file.Files.createTempFile:(Ljava/lang/String;Ljava/lang/String;[Ljava/nio/file/attribute/FileAttribute;)Ljava/nio/file/Path;
            invokeinterface java.nio.file.Path.toFile:()Ljava/io/File;
            putfield javax.imageio.stream.FileCacheImageInputStream.cacheFile:Ljava/io/File;
            goto 14
        11: .line 104
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aload 2 /* cacheDir */
            invokevirtual java.io.File.toPath:()Ljava/nio/file/Path;
            ldc "imageio"
            ldc ".tmp"
            iconst_0
            anewarray java.nio.file.attribute.FileAttribute
            invokestatic java.nio.file.Files.createTempFile:(Ljava/nio/file/Path;Ljava/lang/String;Ljava/lang/String;[Ljava/nio/file/attribute/FileAttribute;)Ljava/nio/file/Path;
        12: .line 105
            invokeinterface java.nio.file.Path.toFile:()Ljava/io/File;
        13: .line 104
            putfield javax.imageio.stream.FileCacheImageInputStream.cacheFile:Ljava/io/File;
        14: .line 106
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            new java.io.RandomAccessFile
            dup
            aload 0 /* this */
            getfield javax.imageio.stream.FileCacheImageInputStream.cacheFile:Ljava/io/File;
            ldc "rw"
            invokespecial java.io.RandomAccessFile.<init>:(Ljava/io/File;Ljava/lang/String;)V
            putfield javax.imageio.stream.FileCacheImageInputStream.cache:Ljava/io/RandomAccessFile;
        15: .line 108
            aload 0 /* this */
            aload 0 /* this */
            invokestatic com.sun.imageio.stream.StreamCloser.createCloseAction:(Ljavax/imageio/stream/ImageInputStream;)Lcom/sun/imageio/stream/StreamCloser$CloseAction;
            putfield javax.imageio.stream.FileCacheImageInputStream.closeAction:Lcom/sun/imageio/stream/StreamCloser$CloseAction;
        16: .line 109
            aload 0 /* this */
            getfield javax.imageio.stream.FileCacheImageInputStream.closeAction:Lcom/sun/imageio/stream/StreamCloser$CloseAction;
            invokestatic com.sun.imageio.stream.StreamCloser.addToQueue:(Lcom/sun/imageio/stream/StreamCloser$CloseAction;)V
        17: .line 111
            aload 0 /* this */
            new javax.imageio.stream.FileCacheImageInputStream$StreamDisposerRecord
            dup
            aload 0 /* this */
            getfield javax.imageio.stream.FileCacheImageInputStream.cacheFile:Ljava/io/File;
            aload 0 /* this */
            getfield javax.imageio.stream.FileCacheImageInputStream.cache:Ljava/io/RandomAccessFile;
            invokespecial javax.imageio.stream.FileCacheImageInputStream$StreamDisposerRecord.<init>:(Ljava/io/File;Ljava/io/RandomAccessFile;)V
            putfield javax.imageio.stream.FileCacheImageInputStream.disposerRecord:Lsun/java2d/DisposerRecord;
        18: .line 112
            aload 0 /* this */
            invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
            ldc Ljavax/imageio/stream/FileCacheImageInputStream;
            if_acmpne 22
        19: .line 113
            aload 0 /* this */
            new java.lang.Object
            dup
            invokespecial java.lang.Object.<init>:()V
            putfield javax.imageio.stream.FileCacheImageInputStream.disposerReferent:Ljava/lang/Object;
        20: .line 114
            aload 0 /* this */
            getfield javax.imageio.stream.FileCacheImageInputStream.disposerReferent:Ljava/lang/Object;
            aload 0 /* this */
            getfield javax.imageio.stream.FileCacheImageInputStream.disposerRecord:Lsun/java2d/DisposerRecord;
            invokestatic sun.java2d.Disposer.addRecord:(Ljava/lang/Object;Lsun/java2d/DisposerRecord;)V
        21: .line 115
            goto 23
        22: .line 116
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            new com.sun.imageio.stream.StreamFinalizer
            dup
            aload 0 /* this */
            invokespecial com.sun.imageio.stream.StreamFinalizer.<init>:(Ljavax/imageio/stream/ImageInputStream;)V
            putfield javax.imageio.stream.FileCacheImageInputStream.disposerReferent:Ljava/lang/Object;
        23: .line 118
      StackMap locals:
      StackMap stack:
            return
        end local 2 // java.io.File cacheDir
        end local 1 // java.io.InputStream stream
        end local 0 // javax.imageio.stream.FileCacheImageInputStream this
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0   24     0      this  Ljavax/imageio/stream/FileCacheImageInputStream;
            0   24     1    stream  Ljava/io/InputStream;
            0   24     2  cacheDir  Ljava/io/File;
    Exceptions:
      throws java.io.IOException
    MethodParameters:
          Name  Flags
      stream    
      cacheDir  

  private long readUntil(long);
    descriptor: (J)J
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=7, locals=6, args_size=2
        start local 0 // javax.imageio.stream.FileCacheImageInputStream this
        start local 1 // long pos
         0: .line 131
            lload 1 /* pos */
            aload 0 /* this */
            getfield javax.imageio.stream.FileCacheImageInputStream.length:J
            lcmp
            ifge 2
         1: .line 132
            lload 1 /* pos */
            lreturn
         2: .line 135
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield javax.imageio.stream.FileCacheImageInputStream.foundEOF:Z
            ifeq 4
         3: .line 136
            aload 0 /* this */
            getfield javax.imageio.stream.FileCacheImageInputStream.length:J
            lreturn
         4: .line 139
      StackMap locals:
      StackMap stack:
            lload 1 /* pos */
            aload 0 /* this */
            getfield javax.imageio.stream.FileCacheImageInputStream.length:J
            lsub
            lstore 3 /* len */
        start local 3 // long len
         5: .line 140
            aload 0 /* this */
            getfield javax.imageio.stream.FileCacheImageInputStream.cache:Ljava/io/RandomAccessFile;
            aload 0 /* this */
            getfield javax.imageio.stream.FileCacheImageInputStream.length:J
            invokevirtual java.io.RandomAccessFile.seek:(J)V
         6: .line 141
            goto 15
         7: .line 145
      StackMap locals: long
      StackMap stack:
            aload 0 /* this */
            getfield javax.imageio.stream.FileCacheImageInputStream.stream:Ljava/io/InputStream;
            aload 0 /* this */
            getfield javax.imageio.stream.FileCacheImageInputStream.buf:[B
            iconst_0
            lload 3 /* len */
            ldc 1024
            invokestatic java.lang.Math.min:(JJ)J
            l2i
            invokevirtual java.io.InputStream.read:([BII)I
         8: .line 144
            istore 5 /* nbytes */
        start local 5 // int nbytes
         9: .line 146
            iload 5 /* nbytes */
            iconst_m1
            if_icmpne 12
        10: .line 147
            aload 0 /* this */
            iconst_1
            putfield javax.imageio.stream.FileCacheImageInputStream.foundEOF:Z
        11: .line 148
            aload 0 /* this */
            getfield javax.imageio.stream.FileCacheImageInputStream.length:J
            lreturn
        12: .line 151
      StackMap locals: int
      StackMap stack:
            aload 0 /* this */
            getfield javax.imageio.stream.FileCacheImageInputStream.cache:Ljava/io/RandomAccessFile;
            aload 0 /* this */
            getfield javax.imageio.stream.FileCacheImageInputStream.buf:[B
            iconst_0
            iload 5 /* nbytes */
            invokevirtual java.io.RandomAccessFile.write:([BII)V
        13: .line 152
            lload 3 /* len */
            iload 5 /* nbytes */
            i2l
            lsub
            lstore 3 /* len */
        14: .line 153
            aload 0 /* this */
            dup
            getfield javax.imageio.stream.FileCacheImageInputStream.length:J
            iload 5 /* nbytes */
            i2l
            ladd
            putfield javax.imageio.stream.FileCacheImageInputStream.length:J
        end local 5 // int nbytes
        15: .line 141
      StackMap locals:
      StackMap stack:
            lload 3 /* len */
            lconst_0
            lcmp
            ifgt 7
        16: .line 156
            lload 1 /* pos */
            lreturn
        end local 3 // long len
        end local 1 // long pos
        end local 0 // javax.imageio.stream.FileCacheImageInputStream this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0   17     0    this  Ljavax/imageio/stream/FileCacheImageInputStream;
            0   17     1     pos  J
            5   17     3     len  J
            9   15     5  nbytes  I
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      pos   

  public int read();
    descriptor: ()I
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=8, locals=5, args_size=1
        start local 0 // javax.imageio.stream.FileCacheImageInputStream this
         0: .line 160
            aload 0 /* this */
            invokevirtual javax.imageio.stream.FileCacheImageInputStream.checkClosed:()V
         1: .line 161
            aload 0 /* this */
            iconst_0
            putfield javax.imageio.stream.FileCacheImageInputStream.bitOffset:I
         2: .line 162
            aload 0 /* this */
            getfield javax.imageio.stream.FileCacheImageInputStream.streamPos:J
            lconst_1
            ladd
            lstore 1 /* next */
        start local 1 // long next
         3: .line 163
            aload 0 /* this */
            lload 1 /* next */
            invokevirtual javax.imageio.stream.FileCacheImageInputStream.readUntil:(J)J
            lstore 3 /* pos */
        start local 3 // long pos
         4: .line 164
            lload 3 /* pos */
            lload 1 /* next */
            lcmp
            iflt 7
         5: .line 165
            aload 0 /* this */
            getfield javax.imageio.stream.FileCacheImageInputStream.cache:Ljava/io/RandomAccessFile;
            aload 0 /* this */
            dup
            getfield javax.imageio.stream.FileCacheImageInputStream.streamPos:J
            dup2_x1
            lconst_1
            ladd
            putfield javax.imageio.stream.FileCacheImageInputStream.streamPos:J
            invokevirtual java.io.RandomAccessFile.seek:(J)V
         6: .line 166
            aload 0 /* this */
            getfield javax.imageio.stream.FileCacheImageInputStream.cache:Ljava/io/RandomAccessFile;
            invokevirtual java.io.RandomAccessFile.read:()I
            ireturn
         7: .line 168
      StackMap locals: long long
      StackMap stack:
            iconst_m1
            ireturn
        end local 3 // long pos
        end local 1 // long next
        end local 0 // javax.imageio.stream.FileCacheImageInputStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    8     0  this  Ljavax/imageio/stream/FileCacheImageInputStream;
            3    8     1  next  J
            4    8     3   pos  J
    Exceptions:
      throws java.io.IOException

  public int read(byte[], int, int);
    descriptor: ([BII)I
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=6, locals=6, args_size=4
        start local 0 // javax.imageio.stream.FileCacheImageInputStream this
        start local 1 // byte[] b
        start local 2 // int off
        start local 3 // int len
         0: .line 173
            aload 0 /* this */
            invokevirtual javax.imageio.stream.FileCacheImageInputStream.checkClosed:()V
         1: .line 175
            aload 1 /* b */
            ifnonnull 3
         2: .line 176
            new java.lang.NullPointerException
            dup
            ldc "b == null!"
            invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
            athrow
         3: .line 179
      StackMap locals:
      StackMap stack:
            iload 2 /* off */
            iflt 4
            iload 3 /* len */
            iflt 4
            iload 2 /* off */
            iload 3 /* len */
            iadd
            aload 1 /* b */
            arraylength
            if_icmpgt 4
            iload 2 /* off */
            iload 3 /* len */
            iadd
            ifge 7
         4: .line 180
      StackMap locals:
      StackMap stack:
            new java.lang.IndexOutOfBoundsException
            dup
         5: .line 181
            ldc "off < 0 || len < 0 || off+len > b.length || off+len < 0!"
         6: .line 180
            invokespecial java.lang.IndexOutOfBoundsException.<init>:(Ljava/lang/String;)V
            athrow
         7: .line 184
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            iconst_0
            putfield javax.imageio.stream.FileCacheImageInputStream.bitOffset:I
         8: .line 186
            iload 3 /* len */
            ifne 10
         9: .line 187
            iconst_0
            ireturn
        10: .line 190
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aload 0 /* this */
            getfield javax.imageio.stream.FileCacheImageInputStream.streamPos:J
            iload 3 /* len */
            i2l
            ladd
            invokevirtual javax.imageio.stream.FileCacheImageInputStream.readUntil:(J)J
            lstore 4 /* pos */
        start local 4 // long pos
        11: .line 193
            iload 3 /* len */
            i2l
            lload 4 /* pos */
            aload 0 /* this */
            getfield javax.imageio.stream.FileCacheImageInputStream.streamPos:J
            lsub
            invokestatic java.lang.Math.min:(JJ)J
            l2i
            istore 3 /* len */
        12: .line 194
            iload 3 /* len */
            ifle 17
        13: .line 195
            aload 0 /* this */
            getfield javax.imageio.stream.FileCacheImageInputStream.cache:Ljava/io/RandomAccessFile;
            aload 0 /* this */
            getfield javax.imageio.stream.FileCacheImageInputStream.streamPos:J
            invokevirtual java.io.RandomAccessFile.seek:(J)V
        14: .line 196
            aload 0 /* this */
            getfield javax.imageio.stream.FileCacheImageInputStream.cache:Ljava/io/RandomAccessFile;
            aload 1 /* b */
            iload 2 /* off */
            iload 3 /* len */
            invokevirtual java.io.RandomAccessFile.readFully:([BII)V
        15: .line 197
            aload 0 /* this */
            dup
            getfield javax.imageio.stream.FileCacheImageInputStream.streamPos:J
            iload 3 /* len */
            i2l
            ladd
            putfield javax.imageio.stream.FileCacheImageInputStream.streamPos:J
        16: .line 198
            iload 3 /* len */
            ireturn
        17: .line 200
      StackMap locals: long
      StackMap stack:
            iconst_m1
            ireturn
        end local 4 // long pos
        end local 3 // int len
        end local 2 // int off
        end local 1 // byte[] b
        end local 0 // javax.imageio.stream.FileCacheImageInputStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0   18     0  this  Ljavax/imageio/stream/FileCacheImageInputStream;
            0   18     1     b  [B
            0   18     2   off  I
            0   18     3   len  I
           11   18     4   pos  J
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      b     
      off   
      len   

  public boolean isCached();
    descriptor: ()Z
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // javax.imageio.stream.FileCacheImageInputStream this
         0: .line 215
            iconst_1
            ireturn
        end local 0 // javax.imageio.stream.FileCacheImageInputStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Ljavax/imageio/stream/FileCacheImageInputStream;

  public boolean isCachedFile();
    descriptor: ()Z
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // javax.imageio.stream.FileCacheImageInputStream this
         0: .line 228
            iconst_1
            ireturn
        end local 0 // javax.imageio.stream.FileCacheImageInputStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Ljavax/imageio/stream/FileCacheImageInputStream;

  public boolean isCachedMemory();
    descriptor: ()Z
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // javax.imageio.stream.FileCacheImageInputStream this
         0: .line 242
            iconst_0
            ireturn
        end local 0 // javax.imageio.stream.FileCacheImageInputStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Ljavax/imageio/stream/FileCacheImageInputStream;

  public void close();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // javax.imageio.stream.FileCacheImageInputStream this
         0: .line 253
            aload 0 /* this */
            invokespecial javax.imageio.stream.ImageInputStreamImpl.close:()V
         1: .line 254
            aload 0 /* this */
            getfield javax.imageio.stream.FileCacheImageInputStream.disposerRecord:Lsun/java2d/DisposerRecord;
            invokeinterface sun.java2d.DisposerRecord.dispose:()V
         2: .line 255
            aload 0 /* this */
            aconst_null
            putfield javax.imageio.stream.FileCacheImageInputStream.stream:Ljava/io/InputStream;
         3: .line 256
            aload 0 /* this */
            aconst_null
            putfield javax.imageio.stream.FileCacheImageInputStream.cache:Ljava/io/RandomAccessFile;
         4: .line 257
            aload 0 /* this */
            aconst_null
            putfield javax.imageio.stream.FileCacheImageInputStream.cacheFile:Ljava/io/File;
         5: .line 258
            aload 0 /* this */
            getfield javax.imageio.stream.FileCacheImageInputStream.closeAction:Lcom/sun/imageio/stream/StreamCloser$CloseAction;
            invokestatic com.sun.imageio.stream.StreamCloser.removeFromQueue:(Lcom/sun/imageio/stream/StreamCloser$CloseAction;)V
         6: .line 259
            return
        end local 0 // javax.imageio.stream.FileCacheImageInputStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    7     0  this  Ljavax/imageio/stream/FileCacheImageInputStream;
    Exceptions:
      throws java.io.IOException

  protected void finalize();
    descriptor: ()V
    flags: (0x0004) ACC_PROTECTED
    Code:
      stack=0, locals=1, args_size=1
        start local 0 // javax.imageio.stream.FileCacheImageInputStream this
         0: .line 278
            return
        end local 0 // javax.imageio.stream.FileCacheImageInputStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Ljavax/imageio/stream/FileCacheImageInputStream;
    Exceptions:
      throws java.lang.Throwable
    RuntimeVisibleAnnotations: 
      java.lang.Deprecated(since = "9")
}
SourceFile: "FileCacheImageInputStream.java"
NestMembers:
  javax.imageio.stream.FileCacheImageInputStream$StreamDisposerRecord
InnerClasses:
  public final CloseAction = com.sun.imageio.stream.StreamCloser$CloseAction of com.sun.imageio.stream.StreamCloser
  private StreamDisposerRecord = javax.imageio.stream.FileCacheImageInputStream$StreamDisposerRecord of javax.imageio.stream.FileCacheImageInputStream