class javax.imageio.stream.MemoryCache
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: javax.imageio.stream.MemoryCache
super_class: java.lang.Object
{
private static final int BUFFER_LENGTH;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 8192
private java.util.ArrayList cache;
descriptor: Ljava/util/ArrayList;
flags: (0x0002) ACC_PRIVATE
private long cacheStart;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private long length;
descriptor: J
flags: (0x0002) ACC_PRIVATE
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=3, locals=1, args_size=1
start local 0 // javax.imageio.stream.MemoryCache this
0: .line 57
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
1: .line 61
aload 0 /* this */
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield javax.imageio.stream.MemoryCache.cache:Ljava/util/ArrayList;
2: .line 63
aload 0 /* this */
lconst_0
putfield javax.imageio.stream.MemoryCache.cacheStart:J
3: .line 68
aload 0 /* this */
lconst_0
putfield javax.imageio.stream.MemoryCache.length:J
4: .line 57
return
end local 0 // javax.imageio.stream.MemoryCache this
LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljavax/imageio/stream/MemoryCache;
private byte[] getCacheBlock(long);
descriptor: (J)[B
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=5, args_size=2
start local 0 // javax.imageio.stream.MemoryCache this
start local 1 // long blockNum
0: .line 71
lload 1 /* blockNum */
aload 0 /* this */
getfield javax.imageio.stream.MemoryCache.cacheStart:J
lsub
lstore 3 /* blockOffset */
start local 3 // long blockOffset
1: .line 72
lload 3 /* blockOffset */
ldc 2147483647
lcmp
ifle 3
2: .line 75
new java.io.IOException
dup
ldc "Cache addressing limit exceeded!"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
3: .line 77
StackMap locals: long
StackMap stack:
aload 0 /* this */
getfield javax.imageio.stream.MemoryCache.cache:Ljava/util/ArrayList;
lload 3 /* blockOffset */
l2i
invokevirtual java.util.ArrayList.get:(I)Ljava/lang/Object;
checkcast byte[]
areturn
end local 3 // long blockOffset
end local 1 // long blockNum
end local 0 // javax.imageio.stream.MemoryCache this
LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljavax/imageio/stream/MemoryCache;
0 4 1 blockNum J
1 4 3 blockOffset J
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
blockNum
public long loadFromStream(java.io.InputStream, long);
descriptor: (Ljava/io/InputStream;J)J
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=10, args_size=3
start local 0 // javax.imageio.stream.MemoryCache this
start local 1 // java.io.InputStream stream
start local 2 // long pos
0: .line 89
lload 2 /* pos */
aload 0 /* this */
getfield javax.imageio.stream.MemoryCache.length:J
lcmp
ifge 2
1: .line 90
lload 2 /* pos */
lreturn
2: .line 93
StackMap locals:
StackMap stack:
aload 0 /* this */
getfield javax.imageio.stream.MemoryCache.length:J
ldc 8192
lrem
l2i
istore 4 /* offset */
start local 4 // int offset
3: .line 94
aconst_null
astore 5 /* buf */
start local 5 // byte[] buf
4: .line 96
lload 2 /* pos */
aload 0 /* this */
getfield javax.imageio.stream.MemoryCache.length:J
lsub
lstore 6 /* len */
start local 6 // long len
5: .line 97
iload 4 /* offset */
ifeq 26
6: .line 98
aload 0 /* this */
aload 0 /* this */
getfield javax.imageio.stream.MemoryCache.length:J
ldc 8192
ldiv
invokevirtual javax.imageio.stream.MemoryCache.getCacheBlock:(J)[B
astore 5 /* buf */
7: .line 101
goto 26
8: .line 102
StackMap locals: int byte[] long
StackMap stack:
aload 5 /* buf */
ifnonnull 14
9: .line 104
sipush 8192
newarray 8
astore 5 /* buf */
10: .line 105
goto 13
StackMap locals:
StackMap stack: java.lang.OutOfMemoryError
11: pop
12: .line 106
new java.io.IOException
dup
ldc "No memory left for cache!"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
13: .line 108
StackMap locals:
StackMap stack:
iconst_0
istore 4 /* offset */
14: .line 111
StackMap locals:
StackMap stack:
sipush 8192
iload 4 /* offset */
isub
istore 8 /* left */
start local 8 // int left
15: .line 112
lload 6 /* len */
iload 8 /* left */
i2l
invokestatic java.lang.Math.min:(JJ)J
l2i
istore 9 /* nbytes */
start local 9 // int nbytes
16: .line 113
aload 1 /* stream */
aload 5 /* buf */
iload 4 /* offset */
iload 9 /* nbytes */
invokevirtual java.io.InputStream.read:([BII)I
istore 9 /* nbytes */
17: .line 114
iload 9 /* nbytes */
iconst_m1
if_icmpne 19
18: .line 115
aload 0 /* this */
getfield javax.imageio.stream.MemoryCache.length:J
lreturn
19: .line 118
StackMap locals: int int
StackMap stack:
iload 4 /* offset */
ifne 21
20: .line 119
aload 0 /* this */
getfield javax.imageio.stream.MemoryCache.cache:Ljava/util/ArrayList;
aload 5 /* buf */
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
21: .line 122
StackMap locals:
StackMap stack:
lload 6 /* len */
iload 9 /* nbytes */
i2l
lsub
lstore 6 /* len */
22: .line 123
aload 0 /* this */
dup
getfield javax.imageio.stream.MemoryCache.length:J
iload 9 /* nbytes */
i2l
ladd
putfield javax.imageio.stream.MemoryCache.length:J
23: .line 124
iload 4 /* offset */
iload 9 /* nbytes */
iadd
istore 4 /* offset */
24: .line 126
iload 4 /* offset */
sipush 8192
if_icmplt 26
25: .line 129
aconst_null
astore 5 /* buf */
end local 9 // int nbytes
end local 8 // int left
26: .line 101
StackMap locals:
StackMap stack:
lload 6 /* len */
lconst_0
lcmp
ifgt 8
27: .line 133
lload 2 /* pos */
lreturn
end local 6 // long len
end local 5 // byte[] buf
end local 4 // int offset
end local 2 // long pos
end local 1 // java.io.InputStream stream
end local 0 // javax.imageio.stream.MemoryCache this
LocalVariableTable:
Start End Slot Name Signature
0 28 0 this Ljavax/imageio/stream/MemoryCache;
0 28 1 stream Ljava/io/InputStream;
0 28 2 pos J
3 28 4 offset I
4 28 5 buf [B
5 28 6 len J
15 26 8 left I
16 26 9 nbytes I
Exception table:
from to target type
9 10 11 Class java.lang.OutOfMemoryError
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
stream
pos
public void writeToStream(java.io.OutputStream, long, long);
descriptor: (Ljava/io/OutputStream;JJ)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=11, args_size=4
start local 0 // javax.imageio.stream.MemoryCache this
start local 1 // java.io.OutputStream stream
start local 2 // long pos
start local 4 // long len
0: .line 149
lload 2 /* pos */
lload 4 /* len */
ladd
aload 0 /* this */
getfield javax.imageio.stream.MemoryCache.length:J
lcmp
ifle 2
1: .line 150
new java.lang.IndexOutOfBoundsException
dup
ldc "Argument out of cache"
invokespecial java.lang.IndexOutOfBoundsException.<init>:(Ljava/lang/String;)V
athrow
2: .line 152
StackMap locals:
StackMap stack:
lload 2 /* pos */
lconst_0
lcmp
iflt 3
lload 4 /* len */
lconst_0
lcmp
ifge 4
3: .line 153
StackMap locals:
StackMap stack:
new java.lang.IndexOutOfBoundsException
dup
ldc "Negative pos or len"
invokespecial java.lang.IndexOutOfBoundsException.<init>:(Ljava/lang/String;)V
athrow
4: .line 155
StackMap locals:
StackMap stack:
lload 4 /* len */
lconst_0
lcmp
ifne 6
5: .line 156
return
6: .line 159
StackMap locals:
StackMap stack:
lload 2 /* pos */
ldc 8192
ldiv
lstore 6 /* bufIndex */
start local 6 // long bufIndex
7: .line 160
lload 6 /* bufIndex */
aload 0 /* this */
getfield javax.imageio.stream.MemoryCache.cacheStart:J
lcmp
ifge 9
8: .line 161
new java.lang.IndexOutOfBoundsException
dup
ldc "pos already disposed"
invokespecial java.lang.IndexOutOfBoundsException.<init>:(Ljava/lang/String;)V
athrow
9: .line 163
StackMap locals: long
StackMap stack:
lload 2 /* pos */
ldc 8192
lrem
l2i
istore 8 /* offset */
start local 8 // int offset
10: .line 165
aload 0 /* this */
lload 6 /* bufIndex */
dup2
lconst_1
ladd
lstore 6 /* bufIndex */
invokevirtual javax.imageio.stream.MemoryCache.getCacheBlock:(J)[B
astore 9 /* buf */
start local 9 // byte[] buf
11: .line 166
goto 19
12: .line 167
StackMap locals: int byte[]
StackMap stack:
aload 9 /* buf */
ifnonnull 15
13: .line 168
aload 0 /* this */
lload 6 /* bufIndex */
dup2
lconst_1
ladd
lstore 6 /* bufIndex */
invokevirtual javax.imageio.stream.MemoryCache.getCacheBlock:(J)[B
astore 9 /* buf */
14: .line 169
iconst_0
istore 8 /* offset */
15: .line 171
StackMap locals:
StackMap stack:
lload 4 /* len */
sipush 8192
iload 8 /* offset */
isub
i2l
invokestatic java.lang.Math.min:(JJ)J
l2i
istore 10 /* nbytes */
start local 10 // int nbytes
16: .line 172
aload 1 /* stream */
aload 9 /* buf */
iload 8 /* offset */
iload 10 /* nbytes */
invokevirtual java.io.OutputStream.write:([BII)V
17: .line 173
aconst_null
astore 9 /* buf */
18: .line 174
lload 4 /* len */
iload 10 /* nbytes */
i2l
lsub
lstore 4 /* len */
end local 10 // int nbytes
19: .line 166
StackMap locals:
StackMap stack:
lload 4 /* len */
lconst_0
lcmp
ifgt 12
20: .line 176
return
end local 9 // byte[] buf
end local 8 // int offset
end local 6 // long bufIndex
end local 4 // long len
end local 2 // long pos
end local 1 // java.io.OutputStream stream
end local 0 // javax.imageio.stream.MemoryCache this
LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Ljavax/imageio/stream/MemoryCache;
0 21 1 stream Ljava/io/OutputStream;
0 21 2 pos J
0 21 4 len J
7 21 6 bufIndex J
10 21 8 offset I
11 21 9 buf [B
16 19 10 nbytes I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
stream
pos
len
private void pad(long);
descriptor: (J)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=11, args_size=2
start local 0 // javax.imageio.stream.MemoryCache this
start local 1 // long pos
0: .line 182
aload 0 /* this */
getfield javax.imageio.stream.MemoryCache.cacheStart:J
aload 0 /* this */
getfield javax.imageio.stream.MemoryCache.cache:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.size:()I
i2l
ladd
lconst_1
lsub
lstore 3 /* currIndex */
start local 3 // long currIndex
1: .line 183
lload 1 /* pos */
ldc 8192
ldiv
lstore 5 /* lastIndex */
start local 5 // long lastIndex
2: .line 184
lload 5 /* lastIndex */
lload 3 /* currIndex */
lsub
lstore 7 /* numNewBuffers */
start local 7 // long numNewBuffers
3: .line 185
lconst_0
lstore 9 /* i */
start local 9 // long i
4: goto 10
5: .line 187
StackMap locals: javax.imageio.stream.MemoryCache long long long long long
StackMap stack:
aload 0 /* this */
getfield javax.imageio.stream.MemoryCache.cache:Ljava/util/ArrayList;
sipush 8192
newarray 8
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
6: .line 188
goto 9
StackMap locals:
StackMap stack: java.lang.OutOfMemoryError
7: pop
8: .line 189
new java.io.IOException
dup
ldc "No memory left for cache!"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
9: .line 185
StackMap locals:
StackMap stack:
lload 9 /* i */
lconst_1
ladd
lstore 9 /* i */
StackMap locals:
StackMap stack:
10: lload 9 /* i */
lload 7 /* numNewBuffers */
lcmp
iflt 5
end local 9 // long i
11: .line 192
return
end local 7 // long numNewBuffers
end local 5 // long lastIndex
end local 3 // long currIndex
end local 1 // long pos
end local 0 // javax.imageio.stream.MemoryCache this
LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Ljavax/imageio/stream/MemoryCache;
0 12 1 pos J
1 12 3 currIndex J
2 12 5 lastIndex J
3 12 7 numNewBuffers J
4 11 9 i J
Exception table:
from to target type
5 6 7 Class java.lang.OutOfMemoryError
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
pos
public void write(byte[], int, int, long);
descriptor: ([BIIJ)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=11, args_size=5
start local 0 // javax.imageio.stream.MemoryCache this
start local 1 // byte[] b
start local 2 // int off
start local 3 // int len
start local 4 // long pos
0: .line 211
aload 1 /* b */
ifnonnull 2
1: .line 212
new java.lang.NullPointerException
dup
ldc "b == null!"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
2: .line 215
StackMap locals:
StackMap stack:
iload 2 /* off */
iflt 4
iload 3 /* len */
iflt 4
lload 4 /* pos */
lconst_0
lcmp
iflt 4
3: .line 216
iload 2 /* off */
iload 3 /* len */
iadd
aload 1 /* b */
arraylength
if_icmpgt 4
iload 2 /* off */
iload 3 /* len */
iadd
ifge 5
4: .line 217
StackMap locals:
StackMap stack:
new java.lang.IndexOutOfBoundsException
dup
invokespecial java.lang.IndexOutOfBoundsException.<init>:()V
athrow
5: .line 221
StackMap locals:
StackMap stack:
lload 4 /* pos */
iload 3 /* len */
i2l
ladd
lconst_1
lsub
lstore 6 /* lastPos */
start local 6 // long lastPos
6: .line 222
lload 6 /* lastPos */
aload 0 /* this */
getfield javax.imageio.stream.MemoryCache.length:J
lcmp
iflt 9
7: .line 223
aload 0 /* this */
lload 6 /* lastPos */
invokevirtual javax.imageio.stream.MemoryCache.pad:(J)V
8: .line 224
aload 0 /* this */
lload 6 /* lastPos */
lconst_1
ladd
putfield javax.imageio.stream.MemoryCache.length:J
9: .line 228
StackMap locals: long
StackMap stack:
lload 4 /* pos */
ldc 8192
lrem
l2i
istore 8 /* offset */
start local 8 // int offset
10: .line 229
goto 18
11: .line 230
StackMap locals: int
StackMap stack:
aload 0 /* this */
lload 4 /* pos */
ldc 8192
ldiv
invokevirtual javax.imageio.stream.MemoryCache.getCacheBlock:(J)[B
astore 9 /* buf */
start local 9 // byte[] buf
12: .line 231
iload 3 /* len */
sipush 8192
iload 8 /* offset */
isub
invokestatic java.lang.Math.min:(II)I
istore 10 /* nbytes */
start local 10 // int nbytes
13: .line 232
aload 1 /* b */
iload 2 /* off */
aload 9 /* buf */
iload 8 /* offset */
iload 10 /* nbytes */
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
14: .line 234
lload 4 /* pos */
iload 10 /* nbytes */
i2l
ladd
lstore 4 /* pos */
15: .line 235
iload 2 /* off */
iload 10 /* nbytes */
iadd
istore 2 /* off */
16: .line 236
iload 3 /* len */
iload 10 /* nbytes */
isub
istore 3 /* len */
17: .line 237
iconst_0
istore 8 /* offset */
end local 10 // int nbytes
end local 9 // byte[] buf
18: .line 229
StackMap locals:
StackMap stack:
iload 3 /* len */
ifgt 11
19: .line 239
return
end local 8 // int offset
end local 6 // long lastPos
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.MemoryCache this
LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Ljavax/imageio/stream/MemoryCache;
0 20 1 b [B
0 20 2 off I
0 20 3 len I
0 20 4 pos J
6 20 6 lastPos J
10 20 8 offset I
12 18 9 buf [B
13 18 10 nbytes I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b
off
len
pos
public void write(int, long);
descriptor: (IJ)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=6, args_size=3
start local 0 // javax.imageio.stream.MemoryCache this
start local 1 // int b
start local 2 // long pos
0: .line 253
lload 2 /* pos */
lconst_0
lcmp
ifge 2
1: .line 254
new java.lang.ArrayIndexOutOfBoundsException
dup
ldc "pos < 0"
invokespecial java.lang.ArrayIndexOutOfBoundsException.<init>:(Ljava/lang/String;)V
athrow
2: .line 258
StackMap locals:
StackMap stack:
lload 2 /* pos */
aload 0 /* this */
getfield javax.imageio.stream.MemoryCache.length:J
lcmp
iflt 5
3: .line 259
aload 0 /* this */
lload 2 /* pos */
invokevirtual javax.imageio.stream.MemoryCache.pad:(J)V
4: .line 260
aload 0 /* this */
lload 2 /* pos */
lconst_1
ladd
putfield javax.imageio.stream.MemoryCache.length:J
5: .line 264
StackMap locals:
StackMap stack:
aload 0 /* this */
lload 2 /* pos */
ldc 8192
ldiv
invokevirtual javax.imageio.stream.MemoryCache.getCacheBlock:(J)[B
astore 4 /* buf */
start local 4 // byte[] buf
6: .line 265
lload 2 /* pos */
ldc 8192
lrem
l2i
istore 5 /* offset */
start local 5 // int offset
7: .line 266
aload 4 /* buf */
iload 5 /* offset */
iload 1 /* b */
i2b
bastore
8: .line 267
return
end local 5 // int offset
end local 4 // byte[] buf
end local 2 // long pos
end local 1 // int b
end local 0 // javax.imageio.stream.MemoryCache this
LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljavax/imageio/stream/MemoryCache;
0 9 1 b I
0 9 2 pos J
6 9 4 buf [B
7 9 5 offset I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b
pos
public long getLength();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 // javax.imageio.stream.MemoryCache this
0: .line 275
aload 0 /* this */
getfield javax.imageio.stream.MemoryCache.length:J
lreturn
end local 0 // javax.imageio.stream.MemoryCache this
LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/imageio/stream/MemoryCache;
public int read(long);
descriptor: (J)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=2
start local 0 // javax.imageio.stream.MemoryCache this
start local 1 // long pos
0: .line 284
lload 1 /* pos */
aload 0 /* this */
getfield javax.imageio.stream.MemoryCache.length:J
lcmp
iflt 2
1: .line 285
iconst_m1
ireturn
2: .line 288
StackMap locals:
StackMap stack:
aload 0 /* this */
lload 1 /* pos */
ldc 8192
ldiv
invokevirtual javax.imageio.stream.MemoryCache.getCacheBlock:(J)[B
astore 3 /* buf */
start local 3 // byte[] buf
3: .line 289
aload 3 /* buf */
ifnonnull 5
4: .line 290
iconst_m1
ireturn
5: .line 293
StackMap locals: byte[]
StackMap stack:
aload 3 /* buf */
lload 1 /* pos */
ldc 8192
lrem
l2i
baload
sipush 255
iand
ireturn
end local 3 // byte[] buf
end local 1 // long pos
end local 0 // javax.imageio.stream.MemoryCache this
LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljavax/imageio/stream/MemoryCache;
0 6 1 pos J
3 6 3 buf [B
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
pos
public void read(byte[], int, int, long);
descriptor: ([BIIJ)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=11, args_size=5
start local 0 // javax.imageio.stream.MemoryCache this
start local 1 // byte[] b
start local 2 // int off
start local 3 // int len
start local 4 // long pos
0: .line 310
aload 1 /* b */
ifnonnull 2
1: .line 311
new java.lang.NullPointerException
dup
ldc "b == null!"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
2: .line 314
StackMap locals:
StackMap stack:
iload 2 /* off */
iflt 4
iload 3 /* len */
iflt 4
lload 4 /* pos */
lconst_0
lcmp
iflt 4
3: .line 315
iload 2 /* off */
iload 3 /* len */
iadd
aload 1 /* b */
arraylength
if_icmpgt 4
iload 2 /* off */
iload 3 /* len */
iadd
ifge 5
4: .line 316
StackMap locals:
StackMap stack:
new java.lang.IndexOutOfBoundsException
dup
invokespecial java.lang.IndexOutOfBoundsException.<init>:()V
athrow
5: .line 318
StackMap locals:
StackMap stack:
lload 4 /* pos */
iload 3 /* len */
i2l
ladd
aload 0 /* this */
getfield javax.imageio.stream.MemoryCache.length:J
lcmp
ifle 7
6: .line 319
new java.lang.IndexOutOfBoundsException
dup
invokespecial java.lang.IndexOutOfBoundsException.<init>:()V
athrow
7: .line 322
StackMap locals:
StackMap stack:
lload 4 /* pos */
ldc 8192
ldiv
lstore 6 /* index */
start local 6 // long index
8: .line 323
lload 4 /* pos */
l2i
sipush 8192
irem
istore 8 /* offset */
start local 8 // int offset
9: .line 324
goto 16
10: .line 325
StackMap locals: long int
StackMap stack:
iload 3 /* len */
sipush 8192
iload 8 /* offset */
isub
invokestatic java.lang.Math.min:(II)I
istore 9 /* nbytes */
start local 9 // int nbytes
11: .line 326
aload 0 /* this */
lload 6 /* index */
dup2
lconst_1
ladd
lstore 6 /* index */
invokevirtual javax.imageio.stream.MemoryCache.getCacheBlock:(J)[B
astore 10 /* buf */
start local 10 // byte[] buf
12: .line 327
aload 10 /* buf */
iload 8 /* offset */
aload 1 /* b */
iload 2 /* off */
iload 9 /* nbytes */
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
13: .line 329
iload 3 /* len */
iload 9 /* nbytes */
isub
istore 3 /* len */
14: .line 330
iload 2 /* off */
iload 9 /* nbytes */
iadd
istore 2 /* off */
15: .line 331
iconst_0
istore 8 /* offset */
end local 10 // byte[] buf
end local 9 // int nbytes
16: .line 324
StackMap locals:
StackMap stack:
iload 3 /* len */
ifgt 10
17: .line 333
return
end local 8 // int offset
end local 6 // long index
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.MemoryCache this
LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Ljavax/imageio/stream/MemoryCache;
0 18 1 b [B
0 18 2 off I
0 18 3 len I
0 18 4 pos J
8 18 6 index J
9 18 8 offset I
11 16 9 nbytes I
12 16 10 buf [B
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b
off
len
pos
public void disposeBefore(long);
descriptor: (J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=9, args_size=2
start local 0 // javax.imageio.stream.MemoryCache this
start local 1 // long pos
0: .line 343
lload 1 /* pos */
ldc 8192
ldiv
lstore 3 /* index */
start local 3 // long index
1: .line 344
lload 3 /* index */
aload 0 /* this */
getfield javax.imageio.stream.MemoryCache.cacheStart:J
lcmp
ifge 3
2: .line 345
new java.lang.IndexOutOfBoundsException
dup
ldc "pos already disposed"
invokespecial java.lang.IndexOutOfBoundsException.<init>:(Ljava/lang/String;)V
athrow
3: .line 347
StackMap locals: long
StackMap stack:
lload 3 /* index */
aload 0 /* this */
getfield javax.imageio.stream.MemoryCache.cacheStart:J
lsub
aload 0 /* this */
getfield javax.imageio.stream.MemoryCache.cache:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.size:()I
i2l
invokestatic java.lang.Math.min:(JJ)J
lstore 5 /* numBlocks */
start local 5 // long numBlocks
4: .line 348
lconst_0
lstore 7 /* i */
start local 7 // long i
5: goto 8
6: .line 349
StackMap locals: long long
StackMap stack:
aload 0 /* this */
getfield javax.imageio.stream.MemoryCache.cache:Ljava/util/ArrayList;
iconst_0
invokevirtual java.util.ArrayList.remove:(I)Ljava/lang/Object;
pop
7: .line 348
lload 7 /* i */
lconst_1
ladd
lstore 7 /* i */
StackMap locals:
StackMap stack:
8: lload 7 /* i */
lload 5 /* numBlocks */
lcmp
iflt 6
end local 7 // long i
9: .line 351
aload 0 /* this */
lload 3 /* index */
putfield javax.imageio.stream.MemoryCache.cacheStart:J
10: .line 352
return
end local 5 // long numBlocks
end local 3 // long index
end local 1 // long pos
end local 0 // javax.imageio.stream.MemoryCache this
LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Ljavax/imageio/stream/MemoryCache;
0 11 1 pos J
1 11 3 index J
4 11 5 numBlocks J
5 9 7 i J
MethodParameters:
Name Flags
pos
public void reset();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 // javax.imageio.stream.MemoryCache this
0: .line 360
aload 0 /* this */
getfield javax.imageio.stream.MemoryCache.cache:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.clear:()V
1: .line 361
aload 0 /* this */
lconst_0
putfield javax.imageio.stream.MemoryCache.cacheStart:J
2: .line 362
aload 0 /* this */
lconst_0
putfield javax.imageio.stream.MemoryCache.length:J
3: .line 363
return
end local 0 // javax.imageio.stream.MemoryCache this
LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljavax/imageio/stream/MemoryCache;
}
SourceFile: "MemoryCache.java"