class com.sun.imageio.plugins.jpeg.JPEGBuffer
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.sun.imageio.plugins.jpeg.JPEGBuffer
super_class: java.lang.Object
{
private boolean debug;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
final int BUFFER_SIZE;
descriptor: I
flags: (0x0010) ACC_FINAL
ConstantValue: 4096
byte[] buf;
descriptor: [B
flags: (0x0000)
int bufAvail;
descriptor: I
flags: (0x0000)
int bufPtr;
descriptor: I
flags: (0x0000)
javax.imageio.stream.ImageInputStream iis;
descriptor: Ljavax/imageio/stream/ImageInputStream;
flags: (0x0000)
void <init>(javax.imageio.stream.ImageInputStream);
descriptor: (Ljavax/imageio/stream/ImageInputStream;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_0
putfield com.sun.imageio.plugins.jpeg.JPEGBuffer.debug:Z
2: aload 0
sipush 4096
putfield com.sun.imageio.plugins.jpeg.JPEGBuffer.BUFFER_SIZE:I
3: aload 0
sipush 4096
newarray 8
putfield com.sun.imageio.plugins.jpeg.JPEGBuffer.buf:[B
4: aload 0
iconst_0
putfield com.sun.imageio.plugins.jpeg.JPEGBuffer.bufAvail:I
5: aload 0
iconst_0
putfield com.sun.imageio.plugins.jpeg.JPEGBuffer.bufPtr:I
6: aload 0
aload 1
putfield com.sun.imageio.plugins.jpeg.JPEGBuffer.iis:Ljavax/imageio/stream/ImageInputStream;
7: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/sun/imageio/plugins/jpeg/JPEGBuffer;
0 8 1 iis Ljavax/imageio/stream/ImageInputStream;
MethodParameters:
Name Flags
iis
void loadBuf(int);
descriptor: (I)V
flags: (0x0000)
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield com.sun.imageio.plugins.jpeg.JPEGBuffer.debug:Z
ifeq 4
1: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc "loadbuf called with "
invokevirtual java.io.PrintStream.print:(Ljava/lang/String;)V
2: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "count "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ", "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.print:(Ljava/lang/String;)V
3: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "bufAvail "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield com.sun.imageio.plugins.jpeg.JPEGBuffer.bufAvail:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ", "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
4: StackMap locals:
StackMap stack:
iload 1
ifeq 7
5: aload 0
getfield com.sun.imageio.plugins.jpeg.JPEGBuffer.bufAvail:I
iload 1
if_icmplt 9
6: return
7: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.imageio.plugins.jpeg.JPEGBuffer.bufAvail:I
sipush 4096
if_icmpne 9
8: return
9: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.imageio.plugins.jpeg.JPEGBuffer.bufAvail:I
ifle 11
aload 0
getfield com.sun.imageio.plugins.jpeg.JPEGBuffer.bufAvail:I
sipush 4096
if_icmpge 11
10: aload 0
getfield com.sun.imageio.plugins.jpeg.JPEGBuffer.buf:[B
aload 0
getfield com.sun.imageio.plugins.jpeg.JPEGBuffer.bufPtr:I
aload 0
getfield com.sun.imageio.plugins.jpeg.JPEGBuffer.buf:[B
iconst_0
aload 0
getfield com.sun.imageio.plugins.jpeg.JPEGBuffer.bufAvail:I
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
11: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.imageio.plugins.jpeg.JPEGBuffer.iis:Ljavax/imageio/stream/ImageInputStream;
aload 0
getfield com.sun.imageio.plugins.jpeg.JPEGBuffer.buf:[B
aload 0
getfield com.sun.imageio.plugins.jpeg.JPEGBuffer.bufAvail:I
aload 0
getfield com.sun.imageio.plugins.jpeg.JPEGBuffer.buf:[B
arraylength
aload 0
getfield com.sun.imageio.plugins.jpeg.JPEGBuffer.bufAvail:I
isub
invokeinterface javax.imageio.stream.ImageInputStream.read:([BII)I
istore 2
start local 2 12: aload 0
getfield com.sun.imageio.plugins.jpeg.JPEGBuffer.debug:Z
ifeq 14
13: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "iis.read returned "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
14: StackMap locals: int
StackMap stack:
iload 2
iconst_m1
if_icmpeq 16
15: aload 0
dup
getfield com.sun.imageio.plugins.jpeg.JPEGBuffer.bufAvail:I
iload 2
iadd
putfield com.sun.imageio.plugins.jpeg.JPEGBuffer.bufAvail:I
16: StackMap locals:
StackMap stack:
aload 0
iconst_0
putfield com.sun.imageio.plugins.jpeg.JPEGBuffer.bufPtr:I
17: sipush 4096
iload 1
invokestatic java.lang.Math.min:(II)I
istore 3
start local 3 18: aload 0
getfield com.sun.imageio.plugins.jpeg.JPEGBuffer.bufAvail:I
iload 3
if_icmpge 20
19: new javax.imageio.IIOException
dup
ldc "Image Format Error"
invokespecial javax.imageio.IIOException.<init>:(Ljava/lang/String;)V
athrow
20: StackMap locals: int
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Lcom/sun/imageio/plugins/jpeg/JPEGBuffer;
0 21 1 count I
12 21 2 ret I
18 21 3 minimum I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
count
void readData(byte[]);
descriptor: ([B)V
flags: (0x0000)
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 1
arraylength
istore 2
start local 2 1: aload 0
getfield com.sun.imageio.plugins.jpeg.JPEGBuffer.bufAvail:I
iload 2
if_icmplt 6
2: aload 0
getfield com.sun.imageio.plugins.jpeg.JPEGBuffer.buf:[B
aload 0
getfield com.sun.imageio.plugins.jpeg.JPEGBuffer.bufPtr:I
aload 1
iconst_0
iload 2
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
3: aload 0
dup
getfield com.sun.imageio.plugins.jpeg.JPEGBuffer.bufAvail:I
iload 2
isub
putfield com.sun.imageio.plugins.jpeg.JPEGBuffer.bufAvail:I
4: aload 0
dup
getfield com.sun.imageio.plugins.jpeg.JPEGBuffer.bufPtr:I
iload 2
iadd
putfield com.sun.imageio.plugins.jpeg.JPEGBuffer.bufPtr:I
5: return
6: StackMap locals: int
StackMap stack:
iconst_0
istore 3
start local 3 7: aload 0
getfield com.sun.imageio.plugins.jpeg.JPEGBuffer.bufAvail:I
ifle 13
8: aload 0
getfield com.sun.imageio.plugins.jpeg.JPEGBuffer.buf:[B
aload 0
getfield com.sun.imageio.plugins.jpeg.JPEGBuffer.bufPtr:I
aload 1
iconst_0
aload 0
getfield com.sun.imageio.plugins.jpeg.JPEGBuffer.bufAvail:I
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
9: aload 0
getfield com.sun.imageio.plugins.jpeg.JPEGBuffer.bufAvail:I
istore 3
10: iload 2
aload 0
getfield com.sun.imageio.plugins.jpeg.JPEGBuffer.bufAvail:I
isub
istore 2
11: aload 0
iconst_0
putfield com.sun.imageio.plugins.jpeg.JPEGBuffer.bufAvail:I
12: aload 0
iconst_0
putfield com.sun.imageio.plugins.jpeg.JPEGBuffer.bufPtr:I
13: StackMap locals: int
StackMap stack:
aload 0
getfield com.sun.imageio.plugins.jpeg.JPEGBuffer.iis:Ljavax/imageio/stream/ImageInputStream;
aload 1
iload 3
iload 2
invokeinterface javax.imageio.stream.ImageInputStream.read:([BII)I
iload 2
if_icmpeq 15
14: new javax.imageio.IIOException
dup
ldc "Image format Error"
invokespecial javax.imageio.IIOException.<init>:(Ljava/lang/String;)V
athrow
15: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lcom/sun/imageio/plugins/jpeg/JPEGBuffer;
0 16 1 data [B
1 16 2 count I
7 16 3 offset I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
data
void skipData(int);
descriptor: (I)V
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.sun.imageio.plugins.jpeg.JPEGBuffer.bufAvail:I
iload 1
if_icmplt 4
1: aload 0
dup
getfield com.sun.imageio.plugins.jpeg.JPEGBuffer.bufAvail:I
iload 1
isub
putfield com.sun.imageio.plugins.jpeg.JPEGBuffer.bufAvail:I
2: aload 0
dup
getfield com.sun.imageio.plugins.jpeg.JPEGBuffer.bufPtr:I
iload 1
iadd
putfield com.sun.imageio.plugins.jpeg.JPEGBuffer.bufPtr:I
3: return
4: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.imageio.plugins.jpeg.JPEGBuffer.bufAvail:I
ifle 8
5: iload 1
aload 0
getfield com.sun.imageio.plugins.jpeg.JPEGBuffer.bufAvail:I
isub
istore 1
6: aload 0
iconst_0
putfield com.sun.imageio.plugins.jpeg.JPEGBuffer.bufAvail:I
7: aload 0
iconst_0
putfield com.sun.imageio.plugins.jpeg.JPEGBuffer.bufPtr:I
8: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.imageio.plugins.jpeg.JPEGBuffer.iis:Ljavax/imageio/stream/ImageInputStream;
iload 1
invokeinterface javax.imageio.stream.ImageInputStream.skipBytes:(I)I
iload 1
if_icmpeq 10
9: new javax.imageio.IIOException
dup
ldc "Image format Error"
invokespecial javax.imageio.IIOException.<init>:(Ljava/lang/String;)V
athrow
10: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lcom/sun/imageio/plugins/jpeg/JPEGBuffer;
0 11 1 count I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
count
void pushBack();
descriptor: ()V
flags: (0x0000)
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.imageio.plugins.jpeg.JPEGBuffer.iis:Ljavax/imageio/stream/ImageInputStream;
aload 0
getfield com.sun.imageio.plugins.jpeg.JPEGBuffer.iis:Ljavax/imageio/stream/ImageInputStream;
invokeinterface javax.imageio.stream.ImageInputStream.getStreamPosition:()J
aload 0
getfield com.sun.imageio.plugins.jpeg.JPEGBuffer.bufAvail:I
i2l
lsub
invokeinterface javax.imageio.stream.ImageInputStream.seek:(J)V
1: aload 0
iconst_0
putfield com.sun.imageio.plugins.jpeg.JPEGBuffer.bufAvail:I
2: aload 0
iconst_0
putfield com.sun.imageio.plugins.jpeg.JPEGBuffer.bufPtr:I
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/sun/imageio/plugins/jpeg/JPEGBuffer;
Exceptions:
throws java.io.IOException
long getStreamPosition();
descriptor: ()J
flags: (0x0000)
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.imageio.plugins.jpeg.JPEGBuffer.iis:Ljavax/imageio/stream/ImageInputStream;
invokeinterface javax.imageio.stream.ImageInputStream.getStreamPosition:()J
aload 0
getfield com.sun.imageio.plugins.jpeg.JPEGBuffer.bufAvail:I
i2l
lsub
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/imageio/plugins/jpeg/JPEGBuffer;
Exceptions:
throws java.io.IOException
boolean scanForFF(com.sun.imageio.plugins.jpeg.JPEGImageReader);
descriptor: (Lcom/sun/imageio/plugins/jpeg/JPEGImageReader;)Z
flags: (0x0000)
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: iconst_0
istore 3
start local 3 2: goto 21
3: StackMap locals: int int
StackMap stack:
aload 0
getfield com.sun.imageio.plugins.jpeg.JPEGBuffer.buf:[B
aload 0
dup
getfield com.sun.imageio.plugins.jpeg.JPEGBuffer.bufPtr:I
dup_x1
iconst_1
iadd
putfield com.sun.imageio.plugins.jpeg.JPEGBuffer.bufPtr:I
baload
sipush 255
iand
sipush 255
if_icmpne 7
4: aload 0
dup
getfield com.sun.imageio.plugins.jpeg.JPEGBuffer.bufAvail:I
iconst_1
isub
putfield com.sun.imageio.plugins.jpeg.JPEGBuffer.bufAvail:I
5: iconst_1
istore 3
6: goto 9
7: StackMap locals:
StackMap stack:
aload 0
dup
getfield com.sun.imageio.plugins.jpeg.JPEGBuffer.bufAvail:I
iconst_1
isub
putfield com.sun.imageio.plugins.jpeg.JPEGBuffer.bufAvail:I
8: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.imageio.plugins.jpeg.JPEGBuffer.bufAvail:I
ifgt 3
9: StackMap locals:
StackMap stack:
aload 0
iconst_0
invokevirtual com.sun.imageio.plugins.jpeg.JPEGBuffer.loadBuf:(I)V
10: iload 3
ifeq 15
11: goto 14
12: StackMap locals:
StackMap stack:
aload 0
dup
getfield com.sun.imageio.plugins.jpeg.JPEGBuffer.bufPtr:I
iconst_1
iadd
putfield com.sun.imageio.plugins.jpeg.JPEGBuffer.bufPtr:I
13: aload 0
dup
getfield com.sun.imageio.plugins.jpeg.JPEGBuffer.bufAvail:I
iconst_1
isub
putfield com.sun.imageio.plugins.jpeg.JPEGBuffer.bufAvail:I
14: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.imageio.plugins.jpeg.JPEGBuffer.bufAvail:I
ifle 15
aload 0
getfield com.sun.imageio.plugins.jpeg.JPEGBuffer.buf:[B
aload 0
getfield com.sun.imageio.plugins.jpeg.JPEGBuffer.bufPtr:I
baload
sipush 255
iand
sipush 255
if_icmpeq 12
15: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.imageio.plugins.jpeg.JPEGBuffer.bufAvail:I
ifne 21
16: iconst_1
istore 2
17: aload 0
getfield com.sun.imageio.plugins.jpeg.JPEGBuffer.buf:[B
iconst_0
bipush -39
bastore
18: aload 0
iconst_1
putfield com.sun.imageio.plugins.jpeg.JPEGBuffer.bufAvail:I
19: aload 0
iconst_0
putfield com.sun.imageio.plugins.jpeg.JPEGBuffer.bufPtr:I
20: iconst_1
istore 3
21: StackMap locals:
StackMap stack:
iload 3
ifeq 8
22: iload 2
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 this Lcom/sun/imageio/plugins/jpeg/JPEGBuffer;
0 23 1 reader Lcom/sun/imageio/plugins/jpeg/JPEGImageReader;
1 23 2 retval Z
2 23 3 foundFF Z
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
reader
void print(int);
descriptor: (I)V
flags: (0x0000)
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc "buffer has "
invokevirtual java.io.PrintStream.print:(Ljava/lang/String;)V
1: getstatic java.lang.System.out:Ljava/io/PrintStream;
aload 0
getfield com.sun.imageio.plugins.jpeg.JPEGBuffer.bufAvail:I
invokevirtual java.io.PrintStream.print:(I)V
2: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc " bytes available"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
3: aload 0
getfield com.sun.imageio.plugins.jpeg.JPEGBuffer.bufAvail:I
iload 1
if_icmpge 5
4: aload 0
getfield com.sun.imageio.plugins.jpeg.JPEGBuffer.bufAvail:I
istore 1
5: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.imageio.plugins.jpeg.JPEGBuffer.bufPtr:I
istore 2
start local 2 6: goto 10
7: StackMap locals: int
StackMap stack:
aload 0
getfield com.sun.imageio.plugins.jpeg.JPEGBuffer.buf:[B
iload 2
iinc 2 1
baload
sipush 255
iand
istore 3
start local 3 8: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc " "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 3
invokestatic java.lang.Integer.toHexString:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.print:(Ljava/lang/String;)V
end local 3 9: iinc 1 -1
StackMap locals:
StackMap stack:
10: iload 1
ifgt 7
end local 2 11: getstatic java.lang.System.out:Ljava/io/PrintStream;
invokevirtual java.io.PrintStream.println:()V
12: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lcom/sun/imageio/plugins/jpeg/JPEGBuffer;
0 13 1 count I
6 11 2 ptr I
8 9 3 val I
MethodParameters:
Name Flags
count
}
SourceFile: "JPEGBuffer.java"