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 start local 1 0: aload 0
invokespecial javax.imageio.stream.ImageOutputStreamImpl.<init>:()V
1: aload 0
new javax.imageio.stream.MemoryCache
dup
invokespecial javax.imageio.stream.MemoryCache.<init>:()V
putfield javax.imageio.stream.MemoryCacheImageOutputStream.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.MemoryCacheImageOutputStream java.io.OutputStream
StackMap stack:
aload 0
aload 1
putfield javax.imageio.stream.MemoryCacheImageOutputStream.stream:Ljava/io/OutputStream;
5: return
end local 1 end local 0 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 0: aload 0
invokevirtual javax.imageio.stream.MemoryCacheImageOutputStream.checkClosed:()V
1: aload 0
iconst_0
putfield javax.imageio.stream.MemoryCacheImageOutputStream.bitOffset:I
2: aload 0
getfield javax.imageio.stream.MemoryCacheImageOutputStream.cache:Ljavax/imageio/stream/MemoryCache;
aload 0
getfield javax.imageio.stream.MemoryCacheImageOutputStream.streamPos:J
invokevirtual javax.imageio.stream.MemoryCache.read:(J)I
istore 1
start local 1 3: iload 1
iconst_m1
if_icmpeq 5
4: aload 0
dup
getfield javax.imageio.stream.MemoryCacheImageOutputStream.streamPos:J
lconst_1
ladd
putfield javax.imageio.stream.MemoryCacheImageOutputStream.streamPos:J
5: StackMap locals: int
StackMap stack:
iload 1
ireturn
end local 1 end local 0 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 start local 1 start local 2 start local 3 0: aload 0
invokevirtual javax.imageio.stream.MemoryCacheImageOutputStream.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.MemoryCacheImageOutputStream.bitOffset:I
8: iload 3
ifne 10
9: iconst_0
ireturn
10: StackMap locals:
StackMap stack:
aload 0
getfield javax.imageio.stream.MemoryCacheImageOutputStream.cache:Ljavax/imageio/stream/MemoryCache;
invokevirtual javax.imageio.stream.MemoryCache.getLength:()J
aload 0
getfield javax.imageio.stream.MemoryCacheImageOutputStream.streamPos:J
lsub
lstore 4
start local 4 11: lload 4
lconst_0
lcmp
ifgt 13
12: iconst_m1
ireturn
13: StackMap locals: long
StackMap stack:
lload 4
iload 3
i2l
invokestatic java.lang.Math.min:(JJ)J
l2i
istore 3
14: aload 0
getfield javax.imageio.stream.MemoryCacheImageOutputStream.cache:Ljavax/imageio/stream/MemoryCache;
aload 1
iload 2
iload 3
aload 0
getfield javax.imageio.stream.MemoryCacheImageOutputStream.streamPos:J
invokevirtual javax.imageio.stream.MemoryCache.read:([BIIJ)V
15: aload 0
dup
getfield javax.imageio.stream.MemoryCacheImageOutputStream.streamPos:J
iload 3
i2l
ladd
putfield javax.imageio.stream.MemoryCacheImageOutputStream.streamPos:J
16: iload 3
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/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 start local 1 0: aload 0
invokevirtual javax.imageio.stream.MemoryCacheImageOutputStream.flushBits:()V
1: aload 0
getfield javax.imageio.stream.MemoryCacheImageOutputStream.cache:Ljavax/imageio/stream/MemoryCache;
iload 1
aload 0
getfield javax.imageio.stream.MemoryCacheImageOutputStream.streamPos:J
invokevirtual javax.imageio.stream.MemoryCache.write:(IJ)V
2: aload 0
dup
getfield javax.imageio.stream.MemoryCacheImageOutputStream.streamPos:J
lconst_1
ladd
putfield javax.imageio.stream.MemoryCacheImageOutputStream.streamPos:J
3: return
end local 1 end local 0 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 start local 1 start local 2 start local 3 0: aload 0
invokevirtual javax.imageio.stream.MemoryCacheImageOutputStream.flushBits:()V
1: aload 0
getfield javax.imageio.stream.MemoryCacheImageOutputStream.cache:Ljavax/imageio/stream/MemoryCache;
aload 1
iload 2
iload 3
aload 0
getfield javax.imageio.stream.MemoryCacheImageOutputStream.streamPos:J
invokevirtual javax.imageio.stream.MemoryCache.write:([BIIJ)V
2: aload 0
dup
getfield javax.imageio.stream.MemoryCacheImageOutputStream.streamPos:J
iload 3
i2l
ladd
putfield javax.imageio.stream.MemoryCacheImageOutputStream.streamPos:J
3: return
end local 3 end local 2 end local 1 end local 0 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 0: aload 0
invokevirtual javax.imageio.stream.MemoryCacheImageOutputStream.checkClosed:()V
1: aload 0
getfield javax.imageio.stream.MemoryCacheImageOutputStream.cache:Ljavax/imageio/stream/MemoryCache;
invokevirtual javax.imageio.stream.MemoryCache.getLength:()J
2: lreturn
3: StackMap locals:
StackMap stack: java.io.IOException
pop
4: ldc -1
lreturn
end local 0 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 0: iconst_1
ireturn
end local 0 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 0: iconst_0
ireturn
end local 0 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 0: iconst_1
ireturn
end local 0 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 0: aload 0
getfield javax.imageio.stream.MemoryCacheImageOutputStream.cache:Ljavax/imageio/stream/MemoryCache;
invokevirtual javax.imageio.stream.MemoryCache.getLength:()J
lstore 1
start local 1 1: aload 0
lload 1
invokevirtual javax.imageio.stream.MemoryCacheImageOutputStream.seek:(J)V
2: aload 0
lload 1
invokevirtual javax.imageio.stream.MemoryCacheImageOutputStream.flushBefore:(J)V
3: aload 0
invokespecial javax.imageio.stream.ImageOutputStreamImpl.close:()V
4: aload 0
getfield javax.imageio.stream.MemoryCacheImageOutputStream.cache:Ljavax/imageio/stream/MemoryCache;
invokevirtual javax.imageio.stream.MemoryCache.reset:()V
5: aload 0
aconst_null
putfield javax.imageio.stream.MemoryCacheImageOutputStream.cache:Ljavax/imageio/stream/MemoryCache;
6: aload 0
aconst_null
putfield javax.imageio.stream.MemoryCacheImageOutputStream.stream:Ljava/io/OutputStream;
7: return
end local 1 end local 0 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 start local 1 0: aload 0
getfield javax.imageio.stream.MemoryCacheImageOutputStream.flushedPos:J
lstore 3
start local 3 1: aload 0
lload 1
invokespecial javax.imageio.stream.ImageOutputStreamImpl.flushBefore:(J)V
2: aload 0
getfield javax.imageio.stream.MemoryCacheImageOutputStream.flushedPos:J
lload 3
lsub
lstore 5
start local 5 3: aload 0
getfield javax.imageio.stream.MemoryCacheImageOutputStream.cache:Ljavax/imageio/stream/MemoryCache;
aload 0
getfield javax.imageio.stream.MemoryCacheImageOutputStream.stream:Ljava/io/OutputStream;
lload 3
lload 5
invokevirtual javax.imageio.stream.MemoryCache.writeToStream:(Ljava/io/OutputStream;JJ)V
4: aload 0
getfield javax.imageio.stream.MemoryCacheImageOutputStream.cache:Ljavax/imageio/stream/MemoryCache;
aload 0
getfield javax.imageio.stream.MemoryCacheImageOutputStream.flushedPos:J
invokevirtual javax.imageio.stream.MemoryCache.disposeBefore:(J)V
5: aload 0
getfield javax.imageio.stream.MemoryCacheImageOutputStream.stream:Ljava/io/OutputStream;
invokevirtual java.io.OutputStream.flush:()V
6: return
end local 5 end local 3 end local 1 end local 0 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"