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

  private javax.imageio.stream.MemoryCache cache;
    descriptor: Ljavax/imageio/stream/MemoryCache;
    flags: (0x0002) ACC_PRIVATE

  public void <init>(java.io.OutputStream);
    descriptor: (Ljava/io/OutputStream;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=2, args_size=2
        start local 0 // javax.imageio.stream.MemoryCacheImageOutputStream this
        start local 1 // java.io.OutputStream stream
         0: .line 57
            aload 0 /* this */
            invokespecial javax.imageio.stream.ImageOutputStreamImpl.<init>:()V
         1: .line 46
            aload 0 /* this */
            new javax.imageio.stream.MemoryCache
            dup
            invokespecial javax.imageio.stream.MemoryCache.<init>:()V
            putfield javax.imageio.stream.MemoryCacheImageOutputStream.cache:Ljavax/imageio/stream/MemoryCache;
         2: .line 58
            aload 1 /* stream */
            ifnonnull 4
         3: .line 59
            new java.lang.IllegalArgumentException
            dup
            ldc "stream == null!"
            invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
            athrow
         4: .line 61
      StackMap locals: javax.imageio.stream.MemoryCacheImageOutputStream java.io.OutputStream
      StackMap stack:
            aload 0 /* this */
            aload 1 /* stream */
            putfield javax.imageio.stream.MemoryCacheImageOutputStream.stream:Ljava/io/OutputStream;
         5: .line 62
            return
        end local 1 // java.io.OutputStream stream
        end local 0 // javax.imageio.stream.MemoryCacheImageOutputStream this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    6     0    this  Ljavax/imageio/stream/MemoryCacheImageOutputStream;
            0    6     1  stream  Ljava/io/OutputStream;
    MethodParameters:
        Name  Flags
      stream  

  public int read();
    descriptor: ()I
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=5, locals=2, args_size=1
        start local 0 // javax.imageio.stream.MemoryCacheImageOutputStream this
         0: .line 65
            aload 0 /* this */
            invokevirtual javax.imageio.stream.MemoryCacheImageOutputStream.checkClosed:()V
         1: .line 67
            aload 0 /* this */
            iconst_0
            putfield javax.imageio.stream.MemoryCacheImageOutputStream.bitOffset:I
         2: .line 69
            aload 0 /* this */
            getfield javax.imageio.stream.MemoryCacheImageOutputStream.cache:Ljavax/imageio/stream/MemoryCache;
            aload 0 /* this */
            getfield javax.imageio.stream.MemoryCacheImageOutputStream.streamPos:J
            invokevirtual javax.imageio.stream.MemoryCache.read:(J)I
            istore 1 /* val */
        start local 1 // int val
         3: .line 70
            iload 1 /* val */
            iconst_m1
            if_icmpeq 5
         4: .line 71
            aload 0 /* this */
            dup
            getfield javax.imageio.stream.MemoryCacheImageOutputStream.streamPos:J
            lconst_1
            ladd
            putfield javax.imageio.stream.MemoryCacheImageOutputStream.streamPos:J
         5: .line 73
      StackMap locals: int
      StackMap stack:
            iload 1 /* val */
            ireturn
        end local 1 // int val
        end local 0 // javax.imageio.stream.MemoryCacheImageOutputStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    6     0  this  Ljavax/imageio/stream/MemoryCacheImageOutputStream;
            3    6     1   val  I
    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.MemoryCacheImageOutputStream this
        start local 1 // byte[] b
        start local 2 // int off
        start local 3 // int len
         0: .line 77
            aload 0 /* this */
            invokevirtual javax.imageio.stream.MemoryCacheImageOutputStream.checkClosed:()V
         1: .line 79
            aload 1 /* b */
            ifnonnull 3
         2: .line 80
            new java.lang.NullPointerException
            dup
            ldc "b == null!"
            invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
            athrow
         3: .line 83
      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 84
      StackMap locals:
      StackMap stack:
            new java.lang.IndexOutOfBoundsException
            dup
         5: .line 85
            ldc "off < 0 || len < 0 || off+len > b.length || off+len < 0!"
         6: .line 84
            invokespecial java.lang.IndexOutOfBoundsException.<init>:(Ljava/lang/String;)V
            athrow
         7: .line 88
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            iconst_0
            putfield javax.imageio.stream.MemoryCacheImageOutputStream.bitOffset:I
         8: .line 90
            iload 3 /* len */
            ifne 10
         9: .line 91
            iconst_0
            ireturn
        10: .line 96
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield javax.imageio.stream.MemoryCacheImageOutputStream.cache:Ljavax/imageio/stream/MemoryCache;
            invokevirtual javax.imageio.stream.MemoryCache.getLength:()J
            aload 0 /* this */
            getfield javax.imageio.stream.MemoryCacheImageOutputStream.streamPos:J
            lsub
            lstore 4 /* bytesLeftInCache */
        start local 4 // long bytesLeftInCache
        11: .line 97
            lload 4 /* bytesLeftInCache */
            lconst_0
            lcmp
            ifgt 13
        12: .line 98
            iconst_m1
            ireturn
        13: .line 104
      StackMap locals: long
      StackMap stack:
            lload 4 /* bytesLeftInCache */
            iload 3 /* len */
            i2l
            invokestatic java.lang.Math.min:(JJ)J
            l2i
            istore 3 /* len */
        14: .line 105
            aload 0 /* this */
            getfield javax.imageio.stream.MemoryCacheImageOutputStream.cache:Ljavax/imageio/stream/MemoryCache;
            aload 1 /* b */
            iload 2 /* off */
            iload 3 /* len */
            aload 0 /* this */
            getfield javax.imageio.stream.MemoryCacheImageOutputStream.streamPos:J
            invokevirtual javax.imageio.stream.MemoryCache.read:([BIIJ)V
        15: .line 106
            aload 0 /* this */
            dup
            getfield javax.imageio.stream.MemoryCacheImageOutputStream.streamPos:J
            iload 3 /* len */
            i2l
            ladd
            putfield javax.imageio.stream.MemoryCacheImageOutputStream.streamPos:J
        16: .line 107
            iload 3 /* len */
            ireturn
        end local 4 // long bytesLeftInCache
        end local 3 // int len
        end local 2 // int off
        end local 1 // byte[] b
        end local 0 // javax.imageio.stream.MemoryCacheImageOutputStream this
      LocalVariableTable:
        Start  End  Slot              Name  Signature
            0   17     0              this  Ljavax/imageio/stream/MemoryCacheImageOutputStream;
            0   17     1                 b  [B
            0   17     2               off  I
            0   17     3               len  I
           11   17     4  bytesLeftInCache  J
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      b     
      off   
      len   

  public void write(int);
    descriptor: (I)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=5, locals=2, args_size=2
        start local 0 // javax.imageio.stream.MemoryCacheImageOutputStream this
        start local 1 // int b
         0: .line 111
            aload 0 /* this */
            invokevirtual javax.imageio.stream.MemoryCacheImageOutputStream.flushBits:()V
         1: .line 112
            aload 0 /* this */
            getfield javax.imageio.stream.MemoryCacheImageOutputStream.cache:Ljavax/imageio/stream/MemoryCache;
            iload 1 /* b */
            aload 0 /* this */
            getfield javax.imageio.stream.MemoryCacheImageOutputStream.streamPos:J
            invokevirtual javax.imageio.stream.MemoryCache.write:(IJ)V
         2: .line 113
            aload 0 /* this */
            dup
            getfield javax.imageio.stream.MemoryCacheImageOutputStream.streamPos:J
            lconst_1
            ladd
            putfield javax.imageio.stream.MemoryCacheImageOutputStream.streamPos:J
         3: .line 114
            return
        end local 1 // int b
        end local 0 // javax.imageio.stream.MemoryCacheImageOutputStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    4     0  this  Ljavax/imageio/stream/MemoryCacheImageOutputStream;
            0    4     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=6, locals=4, args_size=4
        start local 0 // javax.imageio.stream.MemoryCacheImageOutputStream this
        start local 1 // byte[] b
        start local 2 // int off
        start local 3 // int len
         0: .line 117
            aload 0 /* this */
            invokevirtual javax.imageio.stream.MemoryCacheImageOutputStream.flushBits:()V
         1: .line 118
            aload 0 /* this */
            getfield javax.imageio.stream.MemoryCacheImageOutputStream.cache:Ljavax/imageio/stream/MemoryCache;
            aload 1 /* b */
            iload 2 /* off */
            iload 3 /* len */
            aload 0 /* this */
            getfield javax.imageio.stream.MemoryCacheImageOutputStream.streamPos:J
            invokevirtual javax.imageio.stream.MemoryCache.write:([BIIJ)V
         2: .line 119
            aload 0 /* this */
            dup
            getfield javax.imageio.stream.MemoryCacheImageOutputStream.streamPos:J
            iload 3 /* len */
            i2l
            ladd
            putfield javax.imageio.stream.MemoryCacheImageOutputStream.streamPos:J
         3: .line 120
            return
        end local 3 // int len
        end local 2 // int off
        end local 1 // byte[] b
        end local 0 // javax.imageio.stream.MemoryCacheImageOutputStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    4     0  this  Ljavax/imageio/stream/MemoryCacheImageOutputStream;
            0    4     1     b  [B
            0    4     2   off  I
            0    4     3   len  I
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      b     
      off   
      len   

  public long length();
    descriptor: ()J
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // javax.imageio.stream.MemoryCacheImageOutputStream this
         0: .line 124
            aload 0 /* this */
            invokevirtual javax.imageio.stream.MemoryCacheImageOutputStream.checkClosed:()V
         1: .line 125
            aload 0 /* this */
            getfield javax.imageio.stream.MemoryCacheImageOutputStream.cache:Ljavax/imageio/stream/MemoryCache;
            invokevirtual javax.imageio.stream.MemoryCache.getLength:()J
         2: lreturn
         3: .line 126
      StackMap locals:
      StackMap stack: java.io.IOException
            pop
         4: .line 127
            ldc -1
            lreturn
        end local 0 // javax.imageio.stream.MemoryCacheImageOutputStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    5     0  this  Ljavax/imageio/stream/MemoryCacheImageOutputStream;
      Exception table:
        from    to  target  type
           0     2       3  Class java.io.IOException

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

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

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

  public void close();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=3, args_size=1
        start local 0 // javax.imageio.stream.MemoryCacheImageOutputStream this
         0: .line 178
            aload 0 /* this */
            getfield javax.imageio.stream.MemoryCacheImageOutputStream.cache:Ljavax/imageio/stream/MemoryCache;
            invokevirtual javax.imageio.stream.MemoryCache.getLength:()J
            lstore 1 /* length */
        start local 1 // long length
         1: .line 179
            aload 0 /* this */
            lload 1 /* length */
            invokevirtual javax.imageio.stream.MemoryCacheImageOutputStream.seek:(J)V
         2: .line 180
            aload 0 /* this */
            lload 1 /* length */
            invokevirtual javax.imageio.stream.MemoryCacheImageOutputStream.flushBefore:(J)V
         3: .line 181
            aload 0 /* this */
            invokespecial javax.imageio.stream.ImageOutputStreamImpl.close:()V
         4: .line 182
            aload 0 /* this */
            getfield javax.imageio.stream.MemoryCacheImageOutputStream.cache:Ljavax/imageio/stream/MemoryCache;
            invokevirtual javax.imageio.stream.MemoryCache.reset:()V
         5: .line 183
            aload 0 /* this */
            aconst_null
            putfield javax.imageio.stream.MemoryCacheImageOutputStream.cache:Ljavax/imageio/stream/MemoryCache;
         6: .line 184
            aload 0 /* this */
            aconst_null
            putfield javax.imageio.stream.MemoryCacheImageOutputStream.stream:Ljava/io/OutputStream;
         7: .line 185
            return
        end local 1 // long length
        end local 0 // javax.imageio.stream.MemoryCacheImageOutputStream this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    8     0    this  Ljavax/imageio/stream/MemoryCacheImageOutputStream;
            1    8     1  length  J
    Exceptions:
      throws java.io.IOException

  public void flushBefore(long);
    descriptor: (J)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=6, locals=7, args_size=2
        start local 0 // javax.imageio.stream.MemoryCacheImageOutputStream this
        start local 1 // long pos
         0: .line 188
            aload 0 /* this */
            getfield javax.imageio.stream.MemoryCacheImageOutputStream.flushedPos:J
            lstore 3 /* oFlushedPos */
        start local 3 // long oFlushedPos
         1: .line 189
            aload 0 /* this */
            lload 1 /* pos */
            invokespecial javax.imageio.stream.ImageOutputStreamImpl.flushBefore:(J)V
         2: .line 191
            aload 0 /* this */
            getfield javax.imageio.stream.MemoryCacheImageOutputStream.flushedPos:J
            lload 3 /* oFlushedPos */
            lsub
            lstore 5 /* flushBytes */
        start local 5 // long flushBytes
         3: .line 192
            aload 0 /* this */
            getfield javax.imageio.stream.MemoryCacheImageOutputStream.cache:Ljavax/imageio/stream/MemoryCache;
            aload 0 /* this */
            getfield javax.imageio.stream.MemoryCacheImageOutputStream.stream:Ljava/io/OutputStream;
            lload 3 /* oFlushedPos */
            lload 5 /* flushBytes */
            invokevirtual javax.imageio.stream.MemoryCache.writeToStream:(Ljava/io/OutputStream;JJ)V
         4: .line 193
            aload 0 /* this */
            getfield javax.imageio.stream.MemoryCacheImageOutputStream.cache:Ljavax/imageio/stream/MemoryCache;
            aload 0 /* this */
            getfield javax.imageio.stream.MemoryCacheImageOutputStream.flushedPos:J
            invokevirtual javax.imageio.stream.MemoryCache.disposeBefore:(J)V
         5: .line 194
            aload 0 /* this */
            getfield javax.imageio.stream.MemoryCacheImageOutputStream.stream:Ljava/io/OutputStream;
            invokevirtual java.io.OutputStream.flush:()V
         6: .line 195
            return
        end local 5 // long flushBytes
        end local 3 // long oFlushedPos
        end local 1 // long pos
        end local 0 // javax.imageio.stream.MemoryCacheImageOutputStream this
      LocalVariableTable:
        Start  End  Slot         Name  Signature
            0    7     0         this  Ljavax/imageio/stream/MemoryCacheImageOutputStream;
            0    7     1          pos  J
            1    7     3  oFlushedPos  J
            3    7     5   flushBytes  J
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      pos   
}
SourceFile: "MemoryCacheImageOutputStream.java"