class com.sun.imageio.plugins.tiff.TIFFLZWUtil
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.sun.imageio.plugins.tiff.TIFFLZWUtil
super_class: java.lang.Object
{
byte[] srcData;
descriptor: [B
flags: (0x0000)
int srcIndex;
descriptor: I
flags: (0x0000)
byte[] dstData;
descriptor: [B
flags: (0x0000)
int dstIndex;
descriptor: I
flags: (0x0000)
byte[][] stringTable;
descriptor: [[B
flags: (0x0000)
int tableIndex;
descriptor: I
flags: (0x0000)
int bitsToGet;
descriptor: I
flags: (0x0000)
int nextData;
descriptor: I
flags: (0x0000)
int nextBits;
descriptor: I
flags: (0x0000)
private static final int[] andTable;
descriptor: [I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: iconst_4
newarray 10
dup
iconst_0
1: sipush 511
iastore
dup
iconst_1
2: sipush 1023
iastore
dup
iconst_2
3: sipush 2047
iastore
dup
iconst_3
4: sipush 4095
iastore
5: putstatic com.sun.imageio.plugins.tiff.TIFFLZWUtil.andTable:[I
6: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_0
putfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.dstIndex:I
2: aload 0
bipush 9
putfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.bitsToGet:I
3: aload 0
iconst_0
putfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.nextData:I
4: aload 0
iconst_0
putfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.nextBits:I
5: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/sun/imageio/plugins/tiff/TIFFLZWUtil;
public byte[] decode(byte[], int, int, int, int);
descriptor: ([BIIII)[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=12, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 1
iconst_0
baload
ifne 2
aload 1
iconst_1
baload
iconst_1
if_icmpne 2
1: new javax.imageio.IIOException
dup
ldc "TIFF 5.0-style LZW compression is not supported!"
invokespecial javax.imageio.IIOException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.srcData:[B
3: aload 0
iconst_0
putfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.srcIndex:I
4: aload 0
iconst_0
putfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.nextData:I
5: aload 0
iconst_0
putfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.nextBits:I
6: aload 0
sipush 8192
newarray 8
putfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.dstData:[B
7: aload 0
iconst_0
putfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.dstIndex:I
8: aload 0
invokevirtual com.sun.imageio.plugins.tiff.TIFFLZWUtil.initializeStringTable:()V
9: iconst_0
istore 7
start local 7 10: goto 30
start local 6 11: StackMap locals: int int
StackMap stack:
iload 6
sipush 256
if_icmpne 19
12: aload 0
invokevirtual com.sun.imageio.plugins.tiff.TIFFLZWUtil.initializeStringTable:()V
13: aload 0
invokevirtual com.sun.imageio.plugins.tiff.TIFFLZWUtil.getNextCode:()I
istore 6
14: iload 6
sipush 257
if_icmpne 16
15: goto 32
16: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.stringTable:[[B
iload 6
aaload
invokevirtual com.sun.imageio.plugins.tiff.TIFFLZWUtil.writeString:([B)V
17: iload 6
istore 7
18: goto 30
19: StackMap locals:
StackMap stack:
iload 6
aload 0
getfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.tableIndex:I
if_icmpge 25
20: aload 0
getfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.stringTable:[[B
iload 6
aaload
astore 8
start local 8 21: aload 0
aload 8
invokevirtual com.sun.imageio.plugins.tiff.TIFFLZWUtil.writeString:([B)V
22: aload 0
aload 0
getfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.stringTable:[[B
iload 7
aaload
aload 8
iconst_0
baload
invokevirtual com.sun.imageio.plugins.tiff.TIFFLZWUtil.addStringToTable:([BB)V
23: iload 6
istore 7
24: goto 30
end local 8 25: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.stringTable:[[B
iload 7
aaload
astore 8
start local 8 26: aload 0
aload 8
aload 8
iconst_0
baload
invokevirtual com.sun.imageio.plugins.tiff.TIFFLZWUtil.composeString:([BB)[B
astore 8
27: aload 0
aload 8
invokevirtual com.sun.imageio.plugins.tiff.TIFFLZWUtil.writeString:([B)V
28: aload 0
aload 8
invokevirtual com.sun.imageio.plugins.tiff.TIFFLZWUtil.addStringToTable:([B)V
29: iload 6
istore 7
end local 8 end local 6 30: StackMap locals: com.sun.imageio.plugins.tiff.TIFFLZWUtil byte[] int int int int top int
StackMap stack:
aload 0
invokevirtual com.sun.imageio.plugins.tiff.TIFFLZWUtil.getNextCode:()I
dup
istore 6
start local 6 31: sipush 257
if_icmpne 11
32: StackMap locals: com.sun.imageio.plugins.tiff.TIFFLZWUtil byte[] int int int int int int
StackMap stack:
iload 2
iconst_2
if_icmpne 44
33: iconst_0
istore 10
start local 10 34: goto 43
35: StackMap locals: com.sun.imageio.plugins.tiff.TIFFLZWUtil byte[] int int int int int int top top int
StackMap stack:
iload 3
iload 10
iload 4
imul
iconst_1
iadd
imul
istore 9
start local 9 36: iload 3
istore 11
start local 11 37: goto 41
38: StackMap locals: com.sun.imageio.plugins.tiff.TIFFLZWUtil byte[] int int int int int int top int int int
StackMap stack:
aload 0
getfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.dstData:[B
iload 9
dup2
baload
aload 0
getfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.dstData:[B
iload 9
iload 3
isub
baload
iadd
i2b
bastore
39: iinc 9 1
40: iinc 11 1
StackMap locals:
StackMap stack:
41: iload 11
iload 4
iload 3
imul
if_icmplt 38
end local 11 42: iinc 10 1
end local 9 StackMap locals: com.sun.imageio.plugins.tiff.TIFFLZWUtil byte[] int int int int int int top top int
StackMap stack:
43: iload 10
iload 5
if_icmplt 35
end local 10 44: StackMap locals: com.sun.imageio.plugins.tiff.TIFFLZWUtil byte[] int int int int int int
StackMap stack:
aload 0
getfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.dstIndex:I
newarray 8
astore 9
start local 9 45: aload 0
getfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.dstData:[B
iconst_0
aload 9
iconst_0
aload 0
getfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.dstIndex:I
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
46: aload 9
areturn
end local 9 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 47 0 this Lcom/sun/imageio/plugins/tiff/TIFFLZWUtil;
0 47 1 data [B
0 47 2 predictor I
0 47 3 samplesPerPixel I
0 47 4 width I
0 47 5 height I
11 30 6 code I
31 47 6 code I
10 47 7 oldCode I
21 25 8 string [B
26 30 8 string [B
36 43 9 count I
34 44 10 j I
37 42 11 i I
45 47 9 newDstData [B
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
data
predictor
samplesPerPixel
width
height
public void initializeStringTable();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
sipush 4096
anewarray byte[]
putfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.stringTable:[[B
1: iconst_0
istore 1
start local 1 2: goto 6
3: StackMap locals: int
StackMap stack:
aload 0
getfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.stringTable:[[B
iload 1
iconst_1
newarray 8
aastore
4: aload 0
getfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.stringTable:[[B
iload 1
aaload
iconst_0
iload 1
i2b
bastore
5: iinc 1 1
StackMap locals:
StackMap stack:
6: iload 1
sipush 256
if_icmplt 3
end local 1 7: aload 0
sipush 258
putfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.tableIndex:I
8: aload 0
bipush 9
putfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.bitsToGet:I
9: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/sun/imageio/plugins/tiff/TIFFLZWUtil;
2 7 1 i I
private void ensureCapacity(int);
descriptor: (I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.dstIndex:I
iload 1
iadd
aload 0
getfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.dstData:[B
arraylength
if_icmple 6
1: aload 0
getfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.dstData:[B
arraylength
i2f
ldc 1.2
fmul
f2i
2: aload 0
getfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.dstIndex:I
iload 1
iadd
3: invokestatic java.lang.Math.max:(II)I
newarray 8
astore 2
start local 2 4: aload 0
getfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.dstData:[B
iconst_0
aload 2
iconst_0
aload 0
getfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.dstData:[B
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
5: aload 0
aload 2
putfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.dstData:[B
end local 2 6: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/sun/imageio/plugins/tiff/TIFFLZWUtil;
0 7 1 bytesToAdd I
4 6 2 newDstData [B
MethodParameters:
Name Flags
bytesToAdd
public void writeString(byte[]);
descriptor: ([B)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
arraylength
invokevirtual com.sun.imageio.plugins.tiff.TIFFLZWUtil.ensureCapacity:(I)V
1: iconst_0
istore 2
start local 2 2: goto 5
3: StackMap locals: int
StackMap stack:
aload 0
getfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.dstData:[B
aload 0
dup
getfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.dstIndex:I
dup_x1
iconst_1
iadd
putfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.dstIndex:I
aload 1
iload 2
baload
bastore
4: iinc 2 1
StackMap locals:
StackMap stack:
5: iload 2
aload 1
arraylength
if_icmplt 3
end local 2 6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/sun/imageio/plugins/tiff/TIFFLZWUtil;
0 7 1 string [B
2 6 2 i I
MethodParameters:
Name Flags
string
public void addStringToTable(byte[], byte);
descriptor: ([BB)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 1
arraylength
istore 3
start local 3 1: iload 3
iconst_1
iadd
newarray 8
astore 4
start local 4 2: aload 1
iconst_0
aload 4
iconst_0
iload 3
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
3: aload 4
iload 3
iload 2
bastore
4: aload 0
getfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.stringTable:[[B
aload 0
dup
getfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.tableIndex:I
dup_x1
iconst_1
iadd
putfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.tableIndex:I
aload 4
aastore
5: aload 0
getfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.tableIndex:I
sipush 511
if_icmpne 8
6: aload 0
bipush 10
putfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.bitsToGet:I
7: goto 13
StackMap locals: int byte[]
StackMap stack:
8: aload 0
getfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.tableIndex:I
sipush 1023
if_icmpne 11
9: aload 0
bipush 11
putfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.bitsToGet:I
10: goto 13
StackMap locals:
StackMap stack:
11: aload 0
getfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.tableIndex:I
sipush 2047
if_icmpne 13
12: aload 0
bipush 12
putfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.bitsToGet:I
13: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lcom/sun/imageio/plugins/tiff/TIFFLZWUtil;
0 14 1 oldString [B
0 14 2 newString B
1 14 3 length I
2 14 4 string [B
MethodParameters:
Name Flags
oldString
newString
public void addStringToTable(byte[]);
descriptor: ([B)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.stringTable:[[B
aload 0
dup
getfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.tableIndex:I
dup_x1
iconst_1
iadd
putfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.tableIndex:I
aload 1
aastore
1: aload 0
getfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.tableIndex:I
sipush 511
if_icmpne 4
2: aload 0
bipush 10
putfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.bitsToGet:I
3: goto 9
StackMap locals:
StackMap stack:
4: aload 0
getfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.tableIndex:I
sipush 1023
if_icmpne 7
5: aload 0
bipush 11
putfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.bitsToGet:I
6: goto 9
StackMap locals:
StackMap stack:
7: aload 0
getfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.tableIndex:I
sipush 2047
if_icmpne 9
8: aload 0
bipush 12
putfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.bitsToGet:I
9: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/sun/imageio/plugins/tiff/TIFFLZWUtil;
0 10 1 string [B
MethodParameters:
Name Flags
string
public byte[] composeString(byte[], byte);
descriptor: ([BB)[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 1
arraylength
istore 3
start local 3 1: iload 3
iconst_1
iadd
newarray 8
astore 4
start local 4 2: aload 1
iconst_0
aload 4
iconst_0
iload 3
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
3: aload 4
iload 3
iload 2
bastore
4: aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/sun/imageio/plugins/tiff/TIFFLZWUtil;
0 5 1 oldString [B
0 5 2 newString B
1 5 3 length I
2 5 4 string [B
MethodParameters:
Name Flags
oldString
newString
public int getNextCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=2, args_size=1
start local 0 0: aload 0
aload 0
getfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.nextData:I
bipush 8
ishl
aload 0
getfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.srcData:[B
aload 0
dup
getfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.srcIndex:I
dup_x1
iconst_1
iadd
putfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.srcIndex:I
baload
sipush 255
iand
ior
putfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.nextData:I
1: aload 0
dup
getfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.nextBits:I
bipush 8
iadd
putfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.nextBits:I
2: aload 0
getfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.nextBits:I
aload 0
getfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.bitsToGet:I
if_icmpge 5
3: aload 0
aload 0
getfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.nextData:I
bipush 8
ishl
aload 0
getfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.srcData:[B
aload 0
dup
getfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.srcIndex:I
dup_x1
iconst_1
iadd
putfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.srcIndex:I
baload
sipush 255
iand
ior
putfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.nextData:I
4: aload 0
dup
getfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.nextBits:I
bipush 8
iadd
putfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.nextBits:I
5: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.nextData:I
aload 0
getfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.nextBits:I
aload 0
getfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.bitsToGet:I
isub
ishr
getstatic com.sun.imageio.plugins.tiff.TIFFLZWUtil.andTable:[I
aload 0
getfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.bitsToGet:I
bipush 9
isub
iaload
iand
6: istore 1
start local 1 7: aload 0
dup
getfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.nextBits:I
aload 0
getfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.bitsToGet:I
isub
putfield com.sun.imageio.plugins.tiff.TIFFLZWUtil.nextBits:I
8: iload 1
9: ireturn
end local 1 10: StackMap locals:
StackMap stack: java.lang.ArrayIndexOutOfBoundsException
pop
11: sipush 257
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lcom/sun/imageio/plugins/tiff/TIFFLZWUtil;
7 10 1 code I
Exception table:
from to target type
0 9 10 Class java.lang.ArrayIndexOutOfBoundsException
}
SourceFile: "TIFFLZWUtil.java"