public abstract class com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor extends com.sun.imageio.plugins.tiff.TIFFCompressor
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor
super_class: com.sun.imageio.plugins.tiff.TIFFCompressor
{
protected static final java.lang.String STREAM_METADATA_NAME;
descriptor: Ljava/lang/String;
flags: (0x001c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL
ConstantValue: "javax_imageio_jpeg_stream_1.0"
protected static final java.lang.String IMAGE_METADATA_NAME;
descriptor: Ljava/lang/String;
flags: (0x001c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL
ConstantValue: "javax_imageio_jpeg_image_1.0"
private javax.imageio.ImageWriteParam param;
descriptor: Ljavax/imageio/ImageWriteParam;
flags: (0x0002) ACC_PRIVATE
protected javax.imageio.plugins.jpeg.JPEGImageWriteParam JPEGParam;
descriptor: Ljavax/imageio/plugins/jpeg/JPEGImageWriteParam;
flags: (0x0004) ACC_PROTECTED
protected javax.imageio.ImageWriter JPEGWriter;
descriptor: Ljavax/imageio/ImageWriter;
flags: (0x0004) ACC_PROTECTED
protected boolean writeAbbreviatedStream;
descriptor: Z
flags: (0x0004) ACC_PROTECTED
protected javax.imageio.metadata.IIOMetadata JPEGStreamMetadata;
descriptor: Ljavax/imageio/metadata/IIOMetadata;
flags: (0x0004) ACC_PROTECTED
private javax.imageio.metadata.IIOMetadata JPEGImageMetadata;
descriptor: Ljavax/imageio/metadata/IIOMetadata;
flags: (0x0002) ACC_PRIVATE
private com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor$IIOByteArrayOutputStream baos;
descriptor: Lcom/sun/imageio/plugins/tiff/TIFFBaseJPEGCompressor$IIOByteArrayOutputStream;
flags: (0x0002) ACC_PRIVATE
private static void pruneNodes(org.w3c.dom.Node, boolean);
descriptor: (Lorg/w3c/dom/Node;Z)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=8, args_size=2
start local 0 start local 1 0: aload 0
ifnonnull 2
1: new java.lang.NullPointerException
dup
ldc "tree == null!"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
invokeinterface org.w3c.dom.Node.getNodeName:()Ljava/lang/String;
ldc "javax_imageio_jpeg_image_1.0"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 6
3: new java.lang.IllegalArgumentException
dup
4: ldc "root node name is not javax_imageio_jpeg_image_1.0!"
5: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 2
start local 2 7: aload 2
bipush 6
anewarray java.lang.String
dup
iconst_0
8: ldc "JPEGvariety"
aastore
dup
iconst_1
ldc "markerSequence"
aastore
dup
iconst_2
9: ldc "sof"
aastore
dup
iconst_3
ldc "componentSpec"
aastore
dup
iconst_4
10: ldc "sos"
aastore
dup
iconst_5
ldc "scanComponentSpec"
aastore
11: invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
invokeinterface java.util.List.addAll:(Ljava/util/Collection;)Z
pop
12: iload 1
ifne 17
13: aload 2
ldc "dht"
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
14: aload 2
ldc "dhtable"
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
15: aload 2
ldc "dqt"
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
16: aload 2
ldc "dqtable"
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
17: StackMap locals: java.util.List
StackMap stack:
aload 0
checkcast javax.imageio.metadata.IIOMetadataNode
astore 3
start local 3 18: aload 3
aconst_null
invokestatic com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor.getAllNodes:(Ljavax/imageio/metadata/IIOMetadataNode;Ljava/util/List;)Ljava/util/List;
astore 4
start local 4 19: aload 4
invokeinterface java.util.List.size:()I
istore 5
start local 5 20: iconst_0
istore 6
start local 6 21: goto 26
22: StackMap locals: org.w3c.dom.Node int java.util.List javax.imageio.metadata.IIOMetadataNode java.util.List int int
StackMap stack:
aload 4
iload 6
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.w3c.dom.Node
astore 7
start local 7 23: aload 2
aload 7
invokeinterface org.w3c.dom.Node.getNodeName:()Ljava/lang/String;
invokeinterface java.util.List.contains:(Ljava/lang/Object;)Z
ifne 25
24: aload 7
invokeinterface org.w3c.dom.Node.getParentNode:()Lorg/w3c/dom/Node;
aload 7
invokeinterface org.w3c.dom.Node.removeChild:(Lorg/w3c/dom/Node;)Lorg/w3c/dom/Node;
pop
end local 7 25: StackMap locals:
StackMap stack:
iinc 6 1
StackMap locals:
StackMap stack:
26: iload 6
iload 5
if_icmplt 22
end local 6 27: return
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 28 0 tree Lorg/w3c/dom/Node;
0 28 1 pruneTables Z
7 28 2 wantedNodes Ljava/util/List<Ljava/lang/String;>;
18 28 3 iioTree Ljavax/imageio/metadata/IIOMetadataNode;
19 28 4 nodes Ljava/util/List<Lorg/w3c/dom/Node;>;
20 28 5 numNodes I
21 27 6 i I
23 25 7 node Lorg/w3c/dom/Node;
MethodParameters:
Name Flags
tree
pruneTables
private static java.util.List<org.w3c.dom.Node> getAllNodes(javax.imageio.metadata.IIOMetadataNode, java.util.List<org.w3c.dom.Node>);
descriptor: (Ljavax/imageio/metadata/IIOMetadataNode;Ljava/util/List;)Ljava/util/List;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 1
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 1
1: StackMap locals:
StackMap stack:
aload 0
invokevirtual javax.imageio.metadata.IIOMetadataNode.hasChildNodes:()Z
ifeq 8
2: aload 0
invokevirtual javax.imageio.metadata.IIOMetadataNode.getFirstChild:()Lorg/w3c/dom/Node;
astore 2
start local 2 3: goto 7
4: StackMap locals: org.w3c.dom.Node
StackMap stack:
aload 1
aload 2
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
5: aload 2
checkcast javax.imageio.metadata.IIOMetadataNode
aload 1
invokestatic com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor.getAllNodes:(Ljavax/imageio/metadata/IIOMetadataNode;Ljava/util/List;)Ljava/util/List;
astore 1
6: aload 2
invokeinterface org.w3c.dom.Node.getNextSibling:()Lorg/w3c/dom/Node;
astore 2
7: StackMap locals:
StackMap stack:
aload 2
ifnonnull 4
end local 2 8: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 root Ljavax/imageio/metadata/IIOMetadataNode;
0 9 1 nodes Ljava/util/List<Lorg/w3c/dom/Node;>;
3 8 2 sibling Lorg/w3c/dom/Node;
Signature: (Ljavax/imageio/metadata/IIOMetadataNode;Ljava/util/List<Lorg/w3c/dom/Node;>;)Ljava/util/List<Lorg/w3c/dom/Node;>;
MethodParameters:
Name Flags
root
nodes
public void <init>(java.lang.String, int, boolean, javax.imageio.ImageWriteParam);
descriptor: (Ljava/lang/String;IZLjavax/imageio/ImageWriteParam;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
aload 1
iload 2
iload 3
invokespecial com.sun.imageio.plugins.tiff.TIFFCompressor.<init>:(Ljava/lang/String;IZ)V
1: aload 0
aconst_null
putfield com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor.param:Ljavax/imageio/ImageWriteParam;
2: aload 0
aconst_null
putfield com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor.JPEGParam:Ljavax/imageio/plugins/jpeg/JPEGImageWriteParam;
3: aload 0
aconst_null
putfield com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor.JPEGWriter:Ljavax/imageio/ImageWriter;
4: aload 0
iconst_0
putfield com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor.writeAbbreviatedStream:Z
5: aload 0
aconst_null
putfield com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor.JPEGStreamMetadata:Ljavax/imageio/metadata/IIOMetadata;
6: aload 0
aconst_null
putfield com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor.JPEGImageMetadata:Ljavax/imageio/metadata/IIOMetadata;
7: aload 0
aload 4
putfield com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor.param:Ljavax/imageio/ImageWriteParam;
8: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/sun/imageio/plugins/tiff/TIFFBaseJPEGCompressor;
0 9 1 compressionType Ljava/lang/String;
0 9 2 compressionTagValue I
0 9 3 isCompressionLossless Z
0 9 4 param Ljavax/imageio/ImageWriteParam;
MethodParameters:
Name Flags
compressionType
compressionTagValue
isCompressionLossless
param
protected void initJPEGWriter(boolean, boolean);
descriptor: (ZZ)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor.JPEGWriter:Ljavax/imageio/ImageWriter;
ifnull 11
1: iload 1
ifne 2
iload 2
ifeq 11
2: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor.JPEGWriter:Ljavax/imageio/ImageWriter;
invokevirtual javax.imageio.ImageWriter.getOriginatingProvider:()Ljavax/imageio/spi/ImageWriterSpi;
astore 3
start local 3 3: iload 1
ifeq 7
4: aload 3
invokevirtual javax.imageio.spi.ImageWriterSpi.getNativeStreamMetadataFormatName:()Ljava/lang/String;
astore 4
start local 4 5: aload 4
ifnull 6
aload 4
ldc "javax_imageio_jpeg_stream_1.0"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 7
6: StackMap locals: javax.imageio.spi.ImageWriterSpi java.lang.String
StackMap stack:
aload 0
aconst_null
putfield com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor.JPEGWriter:Ljavax/imageio/ImageWriter;
end local 4 7: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor.JPEGWriter:Ljavax/imageio/ImageWriter;
ifnull 11
iload 2
ifeq 11
8: aload 3
invokevirtual javax.imageio.spi.ImageWriterSpi.getNativeImageMetadataFormatName:()Ljava/lang/String;
astore 4
start local 4 9: aload 4
ifnull 10
aload 4
ldc "javax_imageio_jpeg_image_1.0"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 11
10: StackMap locals: java.lang.String
StackMap stack:
aload 0
aconst_null
putfield com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor.JPEGWriter:Ljavax/imageio/ImageWriter;
end local 4 end local 3 11: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor.JPEGWriter:Ljavax/imageio/ImageWriter;
ifnonnull 36
12: ldc "jpeg"
invokestatic javax.imageio.ImageIO.getImageWritersByFormatName:(Ljava/lang/String;)Ljava/util/Iterator;
astore 3
start local 3 13: goto 31
14: StackMap locals: java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast javax.imageio.ImageWriter
astore 4
start local 4 15: iload 1
ifne 16
iload 2
ifeq 29
16: StackMap locals: javax.imageio.ImageWriter
StackMap stack:
aload 4
invokevirtual javax.imageio.ImageWriter.getOriginatingProvider:()Ljavax/imageio/spi/ImageWriterSpi;
astore 5
start local 5 17: iload 1
ifeq 23
18: aload 5
invokevirtual javax.imageio.spi.ImageWriterSpi.getNativeStreamMetadataFormatName:()Ljava/lang/String;
19: astore 6
start local 6 20: aload 6
ifnull 31
21: aload 6
ldc "javax_imageio_jpeg_stream_1.0"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 23
22: goto 31
end local 6 23: StackMap locals: javax.imageio.spi.ImageWriterSpi
StackMap stack:
iload 2
ifeq 29
24: aload 5
invokevirtual javax.imageio.spi.ImageWriterSpi.getNativeImageMetadataFormatName:()Ljava/lang/String;
25: astore 6
start local 6 26: aload 6
ifnull 31
27: aload 6
ldc "javax_imageio_jpeg_image_1.0"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 29
28: goto 31
end local 6 end local 5 29: StackMap locals:
StackMap stack:
aload 0
aload 4
putfield com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor.JPEGWriter:Ljavax/imageio/ImageWriter;
30: goto 32
end local 4 31: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 14
32: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor.JPEGWriter:Ljavax/imageio/ImageWriter;
ifnonnull 36
33: new java.lang.NullPointerException
dup
34: ldc "No appropriate JPEG writers found!"
35: invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
end local 3 36: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor.JPEGParam:Ljavax/imageio/plugins/jpeg/JPEGImageWriteParam;
ifnonnull 50
37: aload 0
getfield com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor.param:Ljavax/imageio/ImageWriteParam;
ifnull 40
aload 0
getfield com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor.param:Ljavax/imageio/ImageWriteParam;
instanceof javax.imageio.plugins.jpeg.JPEGImageWriteParam
ifeq 40
38: aload 0
aload 0
getfield com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor.param:Ljavax/imageio/ImageWriteParam;
checkcast javax.imageio.plugins.jpeg.JPEGImageWriteParam
putfield com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor.JPEGParam:Ljavax/imageio/plugins/jpeg/JPEGImageWriteParam;
39: goto 50
40: StackMap locals:
StackMap stack:
aload 0
41: new javax.imageio.plugins.jpeg.JPEGImageWriteParam
dup
aload 0
getfield com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor.writer:Ljavax/imageio/ImageWriter;
ifnull 43
42: aload 0
getfield com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor.writer:Ljavax/imageio/ImageWriter;
invokevirtual javax.imageio.ImageWriter.getLocale:()Ljava/util/Locale;
goto 44
StackMap locals: com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor int int
StackMap stack: com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor new 41 new 41
43: aconst_null
44: StackMap locals: com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor int int
StackMap stack: com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor new 41 new 41 java.util.Locale
invokespecial javax.imageio.plugins.jpeg.JPEGImageWriteParam.<init>:(Ljava/util/Locale;)V
45: putfield com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor.JPEGParam:Ljavax/imageio/plugins/jpeg/JPEGImageWriteParam;
46: aload 0
getfield com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor.param:Ljavax/imageio/ImageWriteParam;
ifnull 50
aload 0
getfield com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor.param:Ljavax/imageio/ImageWriteParam;
invokevirtual javax.imageio.ImageWriteParam.getCompressionMode:()I
47: iconst_2
if_icmpne 50
48: aload 0
getfield com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor.JPEGParam:Ljavax/imageio/plugins/jpeg/JPEGImageWriteParam;
iconst_2
invokevirtual javax.imageio.plugins.jpeg.JPEGImageWriteParam.setCompressionMode:(I)V
49: aload 0
getfield com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor.JPEGParam:Ljavax/imageio/plugins/jpeg/JPEGImageWriteParam;
aload 0
getfield com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor.param:Ljavax/imageio/ImageWriteParam;
invokevirtual javax.imageio.ImageWriteParam.getCompressionQuality:()F
invokevirtual javax.imageio.plugins.jpeg.JPEGImageWriteParam.setCompressionQuality:(F)V
50: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 51 0 this Lcom/sun/imageio/plugins/tiff/TIFFBaseJPEGCompressor;
0 51 1 supportsStreamMetadata Z
0 51 2 supportsImageMetadata Z
3 11 3 spi Ljavax/imageio/spi/ImageWriterSpi;
5 7 4 smName Ljava/lang/String;
9 11 4 imName Ljava/lang/String;
13 36 3 iter Ljava/util/Iterator<Ljavax/imageio/ImageWriter;>;
15 31 4 writer Ljavax/imageio/ImageWriter;
17 29 5 spi Ljavax/imageio/spi/ImageWriterSpi;
20 23 6 smName Ljava/lang/String;
26 29 6 imName Ljava/lang/String;
MethodParameters:
Name Flags
supportsStreamMetadata
supportsImageMetadata
private javax.imageio.metadata.IIOMetadata getImageMetadata(boolean);
descriptor: (Z)Ljavax/imageio/metadata/IIOMetadata;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: aload 0
getfield com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor.JPEGImageMetadata:Ljavax/imageio/metadata/IIOMetadata;
ifnonnull 19
1: ldc "javax_imageio_jpeg_image_1.0"
aload 0
getfield com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor.JPEGWriter:Ljavax/imageio/ImageWriter;
invokevirtual javax.imageio.ImageWriter.getOriginatingProvider:()Ljavax/imageio/spi/ImageWriterSpi;
invokevirtual javax.imageio.spi.ImageWriterSpi.getNativeImageMetadataFormatName:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 19
2: aload 0
getfield com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor.writer:Ljavax/imageio/ImageWriter;
checkcast com.sun.imageio.plugins.tiff.TIFFImageWriter
astore 2
start local 2 3: aload 0
4: aload 0
getfield com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor.JPEGWriter:Ljavax/imageio/ImageWriter;
aload 2
invokevirtual com.sun.imageio.plugins.tiff.TIFFImageWriter.getImageType:()Ljavax/imageio/ImageTypeSpecifier;
5: aload 0
getfield com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor.JPEGParam:Ljavax/imageio/plugins/jpeg/JPEGImageWriteParam;
6: invokevirtual javax.imageio.ImageWriter.getDefaultImageMetadata:(Ljavax/imageio/ImageTypeSpecifier;Ljavax/imageio/ImageWriteParam;)Ljavax/imageio/metadata/IIOMetadata;
7: putfield com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor.JPEGImageMetadata:Ljavax/imageio/metadata/IIOMetadata;
8: aload 0
getfield com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor.JPEGImageMetadata:Ljavax/imageio/metadata/IIOMetadata;
ldc "javax_imageio_jpeg_image_1.0"
invokevirtual javax.imageio.metadata.IIOMetadata.getAsTree:(Ljava/lang/String;)Lorg/w3c/dom/Node;
astore 3
start local 3 9: aload 3
iload 1
invokestatic com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor.pruneNodes:(Lorg/w3c/dom/Node;Z)V
10: goto 13
StackMap locals: com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor int com.sun.imageio.plugins.tiff.TIFFImageWriter org.w3c.dom.Node
StackMap stack: java.lang.IllegalArgumentException
11: astore 4
start local 4 12: new javax.imageio.IIOException
dup
ldc "Error pruning unwanted nodes"
aload 4
invokespecial javax.imageio.IIOException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 4 13: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor.JPEGImageMetadata:Ljavax/imageio/metadata/IIOMetadata;
ldc "javax_imageio_jpeg_image_1.0"
aload 3
invokevirtual javax.imageio.metadata.IIOMetadata.setFromTree:(Ljava/lang/String;Lorg/w3c/dom/Node;)V
14: goto 19
StackMap locals:
StackMap stack: javax.imageio.metadata.IIOInvalidTreeException
15: astore 4
start local 4 16: new javax.imageio.IIOException
dup
17: ldc "Cannot set pruned image metadata!"
aload 4
18: invokespecial javax.imageio.IIOException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 4 end local 3 end local 2 19: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor.JPEGImageMetadata:Ljavax/imageio/metadata/IIOMetadata;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lcom/sun/imageio/plugins/tiff/TIFFBaseJPEGCompressor;
0 20 1 pruneTables Z
3 19 2 tiffWriter Lcom/sun/imageio/plugins/tiff/TIFFImageWriter;
9 19 3 tree Lorg/w3c/dom/Node;
12 13 4 e Ljava/lang/IllegalArgumentException;
16 19 4 e Ljavax/imageio/metadata/IIOInvalidTreeException;
Exception table:
from to target type
9 10 11 Class java.lang.IllegalArgumentException
13 14 15 Class javax.imageio.metadata.IIOInvalidTreeException
Exceptions:
throws javax.imageio.IIOException
MethodParameters:
Name Flags
pruneTables
public final int encode(byte[], int, int, int, int[], int);
descriptor: ([BIII[II)I
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=8, locals=18, args_size=7
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 0: aload 0
getfield com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor.JPEGWriter:Ljavax/imageio/ImageWriter;
ifnonnull 2
1: new javax.imageio.IIOException
dup
ldc "JPEG writer has not been initialized!"
invokespecial javax.imageio.IIOException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 5
arraylength
iconst_3
if_icmpne 6
3: aload 5
iconst_0
iaload
bipush 8
if_icmpne 6
4: aload 5
iconst_1
iaload
bipush 8
if_icmpne 6
5: aload 5
iconst_2
iaload
bipush 8
if_icmpeq 9
6: StackMap locals:
StackMap stack:
aload 5
arraylength
iconst_1
if_icmpne 8
7: aload 5
iconst_0
iaload
bipush 8
if_icmpeq 9
8: StackMap locals:
StackMap stack:
new javax.imageio.IIOException
dup
ldc "Can only JPEG compress 8- and 24-bit images!"
invokespecial javax.imageio.IIOException.<init>:(Ljava/lang/String;)V
athrow
9: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor.baos:Lcom/sun/imageio/plugins/tiff/TIFFBaseJPEGCompressor$IIOByteArrayOutputStream;
ifnonnull 12
10: aload 0
new com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor$IIOByteArrayOutputStream
dup
invokespecial com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor$IIOByteArrayOutputStream.<init>:()V
putfield com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor.baos:Lcom/sun/imageio/plugins/tiff/TIFFBaseJPEGCompressor$IIOByteArrayOutputStream;
11: goto 13
12: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor.baos:Lcom/sun/imageio/plugins/tiff/TIFFBaseJPEGCompressor$IIOByteArrayOutputStream;
invokevirtual com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor$IIOByteArrayOutputStream.reset:()V
13: StackMap locals:
StackMap stack:
new javax.imageio.stream.MemoryCacheImageOutputStream
dup
aload 0
getfield com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor.baos:Lcom/sun/imageio/plugins/tiff/TIFFBaseJPEGCompressor$IIOByteArrayOutputStream;
invokespecial javax.imageio.stream.MemoryCacheImageOutputStream.<init>:(Ljava/io/OutputStream;)V
astore 7
start local 7 14: aload 0
getfield com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor.JPEGWriter:Ljavax/imageio/ImageWriter;
aload 7
invokevirtual javax.imageio.ImageWriter.setOutput:(Ljava/lang/Object;)V
15: iload 2
ifne 18
16: new java.awt.image.DataBufferByte
dup
aload 1
aload 1
arraylength
invokespecial java.awt.image.DataBufferByte.<init>:([BI)V
astore 8
start local 8 17: goto 23
end local 8 18: StackMap locals: javax.imageio.stream.ImageOutputStream
StackMap stack:
iload 6
iload 4
imul
istore 9
start local 9 19: iload 9
newarray 8
astore 10
start local 10 20: aload 1
iload 2
aload 10
iconst_0
iload 9
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
21: new java.awt.image.DataBufferByte
dup
aload 10
iload 9
invokespecial java.awt.image.DataBufferByte.<init>:([BI)V
astore 8
start local 8 22: iconst_0
istore 2
end local 10 end local 9 23: StackMap locals: java.awt.image.DataBufferByte
StackMap stack:
aload 5
arraylength
iconst_3
if_icmpne 27
24: iconst_3
newarray 10
dup
iconst_0
iload 2
iastore
dup
iconst_1
iload 2
iconst_1
iadd
iastore
dup
iconst_2
iload 2
iconst_2
iadd
iastore
astore 9
start local 9 25: sipush 1000
invokestatic java.awt.color.ColorSpace.getInstance:(I)Ljava/awt/color/ColorSpace;
astore 10
start local 10 26: goto 29
end local 10 end local 9 27: StackMap locals:
StackMap stack:
iconst_1
newarray 10
dup
iconst_0
iload 2
iastore
astore 9
start local 9 28: sipush 1003
invokestatic java.awt.color.ColorSpace.getInstance:(I)Ljava/awt/color/ColorSpace;
astore 10
start local 10 29: StackMap locals: int[] java.awt.color.ColorSpace
StackMap stack:
new java.awt.image.ComponentColorModel
dup
aload 10
30: iconst_0
31: iconst_0
32: iconst_1
33: iconst_0
34: invokespecial java.awt.image.ComponentColorModel.<init>:(Ljava/awt/color/ColorSpace;ZZII)V
astore 11
start local 11 35: new java.awt.image.PixelInterleavedSampleModel
dup
iconst_0
36: iload 3
iload 4
37: aload 5
arraylength
38: iload 6
39: aload 9
40: invokespecial java.awt.image.PixelInterleavedSampleModel.<init>:(IIIII[I)V
41: astore 12
start local 12 42: aload 12
aload 8
new java.awt.Point
dup
iconst_0
iconst_0
invokespecial java.awt.Point.<init>:(II)V
invokestatic java.awt.image.Raster.createWritableRaster:(Ljava/awt/image/SampleModel;Ljava/awt/image/DataBuffer;Ljava/awt/Point;)Ljava/awt/image/WritableRaster;
43: astore 13
start local 13 44: new java.awt.image.BufferedImage
dup
aload 11
aload 13
iconst_0
aconst_null
invokespecial java.awt.image.BufferedImage.<init>:(Ljava/awt/image/ColorModel;Ljava/awt/image/WritableRaster;ZLjava/util/Hashtable;)V
astore 14
start local 14 45: aload 0
aload 0
getfield com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor.writeAbbreviatedStream:Z
invokevirtual com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor.getImageMetadata:(Z)Ljavax/imageio/metadata/IIOMetadata;
astore 15
start local 15 46: aload 0
getfield com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor.writeAbbreviatedStream:Z
ifeq 54
47: aload 0
getfield com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor.JPEGWriter:Ljavax/imageio/ImageWriter;
aload 0
getfield com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor.JPEGStreamMetadata:Ljavax/imageio/metadata/IIOMetadata;
invokevirtual javax.imageio.ImageWriter.prepareWriteSequence:(Ljavax/imageio/metadata/IIOMetadata;)V
48: aload 7
invokeinterface javax.imageio.stream.ImageOutputStream.flush:()V
49: aload 0
getfield com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor.baos:Lcom/sun/imageio/plugins/tiff/TIFFBaseJPEGCompressor$IIOByteArrayOutputStream;
invokevirtual com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor$IIOByteArrayOutputStream.reset:()V
50: new javax.imageio.IIOImage
dup
aload 14
aconst_null
aload 15
invokespecial javax.imageio.IIOImage.<init>:(Ljava/awt/image/RenderedImage;Ljava/util/List;Ljavax/imageio/metadata/IIOMetadata;)V
astore 17
start local 17 51: aload 0
getfield com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor.JPEGWriter:Ljavax/imageio/ImageWriter;
aload 17
aload 0
getfield com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor.JPEGParam:Ljavax/imageio/plugins/jpeg/JPEGImageWriteParam;
invokevirtual javax.imageio.ImageWriter.writeToSequence:(Ljavax/imageio/IIOImage;Ljavax/imageio/ImageWriteParam;)V
52: aload 0
getfield com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor.JPEGWriter:Ljavax/imageio/ImageWriter;
invokevirtual javax.imageio.ImageWriter.endWriteSequence:()V
end local 17 53: goto 58
54: StackMap locals: com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor byte[] int int int int[] int javax.imageio.stream.ImageOutputStream java.awt.image.DataBufferByte int[] java.awt.color.ColorSpace java.awt.image.ColorModel java.awt.image.SampleModel java.awt.image.WritableRaster java.awt.image.BufferedImage javax.imageio.metadata.IIOMetadata
StackMap stack:
aload 0
getfield com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor.JPEGWriter:Ljavax/imageio/ImageWriter;
aconst_null
55: new javax.imageio.IIOImage
dup
aload 14
aconst_null
aload 15
invokespecial javax.imageio.IIOImage.<init>:(Ljava/awt/image/RenderedImage;Ljava/util/List;Ljavax/imageio/metadata/IIOMetadata;)V
56: aload 0
getfield com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor.JPEGParam:Ljavax/imageio/plugins/jpeg/JPEGImageWriteParam;
57: invokevirtual javax.imageio.ImageWriter.write:(Ljavax/imageio/metadata/IIOMetadata;Ljavax/imageio/IIOImage;Ljavax/imageio/ImageWriteParam;)V
58: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor.baos:Lcom/sun/imageio/plugins/tiff/TIFFBaseJPEGCompressor$IIOByteArrayOutputStream;
invokevirtual com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor$IIOByteArrayOutputStream.size:()I
istore 16
start local 16 59: aload 0
getfield com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor.baos:Lcom/sun/imageio/plugins/tiff/TIFFBaseJPEGCompressor$IIOByteArrayOutputStream;
aload 0
getfield com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor.stream:Ljavax/imageio/stream/ImageOutputStream;
invokevirtual com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor$IIOByteArrayOutputStream.writeTo:(Ljavax/imageio/stream/ImageOutputStream;)V
60: aload 0
getfield com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor.baos:Lcom/sun/imageio/plugins/tiff/TIFFBaseJPEGCompressor$IIOByteArrayOutputStream;
invokevirtual com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor$IIOByteArrayOutputStream.reset:()V
61: iload 16
ireturn
end local 16 end local 15 end local 14 end local 13 end local 12 end local 11 end local 10 end local 9 end local 8 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 62 0 this Lcom/sun/imageio/plugins/tiff/TIFFBaseJPEGCompressor;
0 62 1 b [B
0 62 2 off I
0 62 3 width I
0 62 4 height I
0 62 5 bitsPerSample [I
0 62 6 scanlineStride I
14 62 7 ios Ljavax/imageio/stream/ImageOutputStream;
17 18 8 dbb Ljava/awt/image/DataBufferByte;
22 62 8 dbb Ljava/awt/image/DataBufferByte;
19 23 9 bytesPerSegment I
20 23 10 btmp [B
25 27 9 offsets [I
28 62 9 offsets [I
26 27 10 cs Ljava/awt/color/ColorSpace;
29 62 10 cs Ljava/awt/color/ColorSpace;
35 62 11 cm Ljava/awt/image/ColorModel;
42 62 12 sm Ljava/awt/image/SampleModel;
44 62 13 wras Ljava/awt/image/WritableRaster;
45 62 14 bi Ljava/awt/image/BufferedImage;
46 62 15 imageMetadata Ljavax/imageio/metadata/IIOMetadata;
59 62 16 compDataLength I
51 53 17 image Ljavax/imageio/IIOImage;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b
off
width
height
bitsPerSample
scanlineStride
protected void finalize();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.finalize:()V
1: aload 0
getfield com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor.JPEGWriter:Ljavax/imageio/ImageWriter;
ifnull 3
2: aload 0
getfield com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor.JPEGWriter:Ljavax/imageio/ImageWriter;
invokevirtual javax.imageio.ImageWriter.dispose:()V
3: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/sun/imageio/plugins/tiff/TIFFBaseJPEGCompressor;
Exceptions:
throws java.lang.Throwable
}
SourceFile: "TIFFBaseJPEGCompressor.java"
NestMembers:
com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor$IIOByteArrayOutputStream
InnerClasses:
private IIOByteArrayOutputStream = com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor$IIOByteArrayOutputStream of com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor