public class javax.imageio.stream.MemoryCacheImageInputStream extends javax.imageio.stream.ImageInputStreamImpl
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: javax.imageio.stream.MemoryCacheImageInputStream
super_class: javax.imageio.stream.ImageInputStreamImpl
{
private java.io.InputStream stream;
descriptor: Ljava/io/InputStream;
flags: (0x0002) ACC_PRIVATE
private javax.imageio.stream.MemoryCache cache;
descriptor: Ljavax/imageio/stream/MemoryCache;
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
public void <init>(java.io.InputStream);
descriptor: (Ljava/io/InputStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial javax.imageio.stream.ImageInputStreamImpl.<init>:()V
1: aload 0
new javax.imageio.stream.MemoryCache
dup
invokespecial javax.imageio.stream.MemoryCache.<init>:()V
putfield javax.imageio.stream.MemoryCacheImageInputStream.cache:Ljavax/imageio/stream/MemoryCache;
2: aload 1
ifnonnull 4
3: new java.lang.IllegalArgumentException
dup
ldc "stream == null!"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals: javax.imageio.stream.MemoryCacheImageInputStream java.io.InputStream
StackMap stack:
aload 0
aload 1
putfield javax.imageio.stream.MemoryCacheImageInputStream.stream:Ljava/io/InputStream;
5: aload 0
new javax.imageio.stream.MemoryCacheImageInputStream$StreamDisposerRecord
dup
aload 0
getfield javax.imageio.stream.MemoryCacheImageInputStream.cache:Ljavax/imageio/stream/MemoryCache;
invokespecial javax.imageio.stream.MemoryCacheImageInputStream$StreamDisposerRecord.<init>:(Ljavax/imageio/stream/MemoryCache;)V
putfield javax.imageio.stream.MemoryCacheImageInputStream.disposerRecord:Lsun/java2d/DisposerRecord;
6: aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
ldc Ljavax/imageio/stream/MemoryCacheImageInputStream;
if_acmpne 10
7: aload 0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putfield javax.imageio.stream.MemoryCacheImageInputStream.disposerReferent:Ljava/lang/Object;
8: aload 0
getfield javax.imageio.stream.MemoryCacheImageInputStream.disposerReferent:Ljava/lang/Object;
aload 0
getfield javax.imageio.stream.MemoryCacheImageInputStream.disposerRecord:Lsun/java2d/DisposerRecord;
invokestatic sun.java2d.Disposer.addRecord:(Ljava/lang/Object;Lsun/java2d/DisposerRecord;)V
9: goto 11
10: StackMap locals:
StackMap stack:
aload 0
new com.sun.imageio.stream.StreamFinalizer
dup
aload 0
invokespecial com.sun.imageio.stream.StreamFinalizer.<init>:(Ljavax/imageio/stream/ImageInputStream;)V
putfield javax.imageio.stream.MemoryCacheImageInputStream.disposerReferent:Ljava/lang/Object;
11: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Ljavax/imageio/stream/MemoryCacheImageInputStream;
0 12 1 stream Ljava/io/InputStream;
MethodParameters:
Name Flags
stream
public int read();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=3, args_size=1
start local 0 0: aload 0
invokevirtual javax.imageio.stream.MemoryCacheImageInputStream.checkClosed:()V
1: aload 0
iconst_0
putfield javax.imageio.stream.MemoryCacheImageInputStream.bitOffset:I
2: aload 0
getfield javax.imageio.stream.MemoryCacheImageInputStream.cache:Ljavax/imageio/stream/MemoryCache;
aload 0
getfield javax.imageio.stream.MemoryCacheImageInputStream.stream:Ljava/io/InputStream;
aload 0
getfield javax.imageio.stream.MemoryCacheImageInputStream.streamPos:J
lconst_1
ladd
invokevirtual javax.imageio.stream.MemoryCache.loadFromStream:(Ljava/io/InputStream;J)J
lstore 1
start local 1 3: lload 1
aload 0
getfield javax.imageio.stream.MemoryCacheImageInputStream.streamPos:J
lconst_1
ladd
lcmp
iflt 5
4: aload 0
getfield javax.imageio.stream.MemoryCacheImageInputStream.cache:Ljavax/imageio/stream/MemoryCache;
aload 0
dup
getfield javax.imageio.stream.MemoryCacheImageInputStream.streamPos:J
dup2_x1
lconst_1
ladd
putfield javax.imageio.stream.MemoryCacheImageInputStream.streamPos:J
invokevirtual javax.imageio.stream.MemoryCache.read:(J)I
ireturn
5: StackMap locals: long
StackMap stack:
iconst_m1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljavax/imageio/stream/MemoryCacheImageInputStream;
3 6 1 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 start local 1 start local 2 start local 3 0: aload 0
invokevirtual javax.imageio.stream.MemoryCacheImageInputStream.checkClosed:()V
1: aload 1
ifnonnull 3
2: new java.lang.NullPointerException
dup
ldc "b == null!"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals:
StackMap stack:
iload 2
iflt 4
iload 3
iflt 4
iload 2
iload 3
iadd
aload 1
arraylength
if_icmpgt 4
iload 2
iload 3
iadd
ifge 7
4: StackMap locals:
StackMap stack:
new java.lang.IndexOutOfBoundsException
dup
5: ldc "off < 0 || len < 0 || off+len > b.length || off+len < 0!"
6: invokespecial java.lang.IndexOutOfBoundsException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals:
StackMap stack:
aload 0
iconst_0
putfield javax.imageio.stream.MemoryCacheImageInputStream.bitOffset:I
8: iload 3
ifne 10
9: iconst_0
ireturn
10: StackMap locals:
StackMap stack:
aload 0
getfield javax.imageio.stream.MemoryCacheImageInputStream.cache:Ljavax/imageio/stream/MemoryCache;
aload 0
getfield javax.imageio.stream.MemoryCacheImageInputStream.stream:Ljava/io/InputStream;
aload 0
getfield javax.imageio.stream.MemoryCacheImageInputStream.streamPos:J
iload 3
i2l
ladd
invokevirtual javax.imageio.stream.MemoryCache.loadFromStream:(Ljava/io/InputStream;J)J
lstore 4
start local 4 11: lload 4
aload 0
getfield javax.imageio.stream.MemoryCacheImageInputStream.streamPos:J
lsub
l2i
istore 3
12: iload 3
ifle 16
13: aload 0
getfield javax.imageio.stream.MemoryCacheImageInputStream.cache:Ljavax/imageio/stream/MemoryCache;
aload 1
iload 2
iload 3
aload 0
getfield javax.imageio.stream.MemoryCacheImageInputStream.streamPos:J
invokevirtual javax.imageio.stream.MemoryCache.read:([BIIJ)V
14: aload 0
dup
getfield javax.imageio.stream.MemoryCacheImageInputStream.streamPos:J
iload 3
i2l
ladd
putfield javax.imageio.stream.MemoryCacheImageInputStream.streamPos:J
15: iload 3
ireturn
16: StackMap locals: long
StackMap stack:
iconst_m1
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Ljavax/imageio/stream/MemoryCacheImageInputStream;
0 17 1 b [B
0 17 2 off I
0 17 3 len I
11 17 4 pos J
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b
off
len
public void flushBefore(long);
descriptor: (J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
lload 1
invokespecial javax.imageio.stream.ImageInputStreamImpl.flushBefore:(J)V
1: aload 0
getfield javax.imageio.stream.MemoryCacheImageInputStream.cache:Ljavax/imageio/stream/MemoryCache;
lload 1
invokevirtual javax.imageio.stream.MemoryCache.disposeBefore:(J)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljavax/imageio/stream/MemoryCacheImageInputStream;
0 3 1 pos J
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
pos
public boolean isCached();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/imageio/stream/MemoryCacheImageInputStream;
public boolean isCachedFile();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/imageio/stream/MemoryCacheImageInputStream;
public boolean isCachedMemory();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/imageio/stream/MemoryCacheImageInputStream;
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial javax.imageio.stream.ImageInputStreamImpl.close:()V
1: aload 0
getfield javax.imageio.stream.MemoryCacheImageInputStream.disposerRecord:Lsun/java2d/DisposerRecord;
invokeinterface sun.java2d.DisposerRecord.dispose:()V
2: aload 0
aconst_null
putfield javax.imageio.stream.MemoryCacheImageInputStream.stream:Ljava/io/InputStream;
3: aload 0
aconst_null
putfield javax.imageio.stream.MemoryCacheImageInputStream.cache:Ljavax/imageio/stream/MemoryCache;
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljavax/imageio/stream/MemoryCacheImageInputStream;
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 0: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/imageio/stream/MemoryCacheImageInputStream;
Exceptions:
throws java.lang.Throwable
}
SourceFile: "MemoryCacheImageInputStream.java"
NestMembers:
javax.imageio.stream.MemoryCacheImageInputStream$StreamDisposerRecord
InnerClasses:
private StreamDisposerRecord = javax.imageio.stream.MemoryCacheImageInputStream$StreamDisposerRecord of javax.imageio.stream.MemoryCacheImageInputStream