public class com.sun.imageio.plugins.png.PNGImageWriterSpi extends javax.imageio.spi.ImageWriterSpi
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.sun.imageio.plugins.png.PNGImageWriterSpi
super_class: javax.imageio.spi.ImageWriterSpi
{
private static final java.lang.String vendorName;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "Oracle Corporation"
private static final java.lang.String version;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "1.0"
private static final java.lang.String[] names;
descriptor: [Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.String[] suffixes;
descriptor: [Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.String[] MIMETypes;
descriptor: [Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.String writerClassName;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "com.sun.imageio.plugins.png.PNGImageWriter"
private static final java.lang.String[] readerSpiNames;
descriptor: [Ljava/lang/String;
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_2
anewarray java.lang.String
dup
iconst_0
ldc "png"
aastore
dup
iconst_1
ldc "PNG"
aastore
putstatic com.sun.imageio.plugins.png.PNGImageWriterSpi.names:[Ljava/lang/String;
1: iconst_1
anewarray java.lang.String
dup
iconst_0
ldc "png"
aastore
putstatic com.sun.imageio.plugins.png.PNGImageWriterSpi.suffixes:[Ljava/lang/String;
2: iconst_2
anewarray java.lang.String
dup
iconst_0
ldc "image/png"
aastore
dup
iconst_1
ldc "image/x-png"
aastore
putstatic com.sun.imageio.plugins.png.PNGImageWriterSpi.MIMETypes:[Ljava/lang/String;
3: iconst_1
anewarray java.lang.String
dup
iconst_0
4: ldc "com.sun.imageio.plugins.png.PNGImageReaderSpi"
aastore
5: putstatic com.sun.imageio.plugins.png.PNGImageWriterSpi.readerSpiNames:[Ljava/lang/String;
6: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=19, locals=1, args_size=1
start local 0 0: aload 0
ldc "Oracle Corporation"
1: ldc "1.0"
2: getstatic com.sun.imageio.plugins.png.PNGImageWriterSpi.names:[Ljava/lang/String;
3: getstatic com.sun.imageio.plugins.png.PNGImageWriterSpi.suffixes:[Ljava/lang/String;
4: getstatic com.sun.imageio.plugins.png.PNGImageWriterSpi.MIMETypes:[Ljava/lang/String;
5: ldc "com.sun.imageio.plugins.png.PNGImageWriter"
6: iconst_1
anewarray java.lang.Class
dup
iconst_0
ldc Ljavax/imageio/stream/ImageOutputStream;
aastore
7: getstatic com.sun.imageio.plugins.png.PNGImageWriterSpi.readerSpiNames:[Ljava/lang/String;
8: iconst_0
9: aconst_null
aconst_null
10: aconst_null
aconst_null
11: iconst_1
12: ldc "javax_imageio_png_1.0"
13: ldc "com.sun.imageio.plugins.png.PNGMetadataFormat"
14: aconst_null
aconst_null
invokespecial javax.imageio.spi.ImageWriterSpi.<init>:(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;[Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Class;[Ljava/lang/String;ZLjava/lang/String;Ljava/lang/String;[Ljava/lang/String;[Ljava/lang/String;ZLjava/lang/String;Ljava/lang/String;[Ljava/lang/String;[Ljava/lang/String;)V
15: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lcom/sun/imageio/plugins/png/PNGImageWriterSpi;
public boolean canEncodeImage(javax.imageio.ImageTypeSpecifier);
descriptor: (Ljavax/imageio/ImageTypeSpecifier;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=8, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual javax.imageio.ImageTypeSpecifier.getSampleModel:()Ljava/awt/image/SampleModel;
astore 2
start local 2 1: aload 1
invokevirtual javax.imageio.ImageTypeSpecifier.getColorModel:()Ljava/awt/image/ColorModel;
astore 3
start local 3 2: aload 2
invokevirtual java.awt.image.SampleModel.getSampleSize:()[I
astore 4
start local 4 3: aload 4
iconst_0
iaload
istore 5
start local 5 4: iconst_1
istore 6
start local 6 5: goto 9
6: StackMap locals: com.sun.imageio.plugins.png.PNGImageWriterSpi javax.imageio.ImageTypeSpecifier java.awt.image.SampleModel java.awt.image.ColorModel int[] int int
StackMap stack:
aload 4
iload 6
iaload
iload 5
if_icmple 8
7: aload 4
iload 6
iaload
istore 5
8: StackMap locals:
StackMap stack:
iinc 6 1
StackMap locals:
StackMap stack:
9: iload 6
aload 4
arraylength
if_icmplt 6
end local 6 10: iload 5
iconst_1
if_icmplt 11
iload 5
bipush 16
if_icmple 12
11: StackMap locals:
StackMap stack:
iconst_0
ireturn
12: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.awt.image.SampleModel.getNumBands:()I
istore 6
start local 6 13: iload 6
iconst_1
if_icmplt 14
iload 6
iconst_4
if_icmple 15
14: StackMap locals: int
StackMap stack:
iconst_0
ireturn
15: StackMap locals:
StackMap stack:
aload 3
invokevirtual java.awt.image.ColorModel.hasAlpha:()Z
istore 7
start local 7 16: aload 3
instanceof java.awt.image.IndexColorModel
ifeq 18
17: iconst_1
ireturn
18: StackMap locals: int
StackMap stack:
iload 6
iconst_1
if_icmpeq 19
iload 6
iconst_3
if_icmpne 21
StackMap locals:
StackMap stack:
19: iload 7
ifeq 21
20: iconst_0
ireturn
21: StackMap locals:
StackMap stack:
iload 6
iconst_2
if_icmpeq 22
iload 6
iconst_4
if_icmpne 24
StackMap locals:
StackMap stack:
22: iload 7
ifne 24
23: iconst_0
ireturn
24: StackMap locals:
StackMap stack:
iconst_1
ireturn
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 25 0 this Lcom/sun/imageio/plugins/png/PNGImageWriterSpi;
0 25 1 type Ljavax/imageio/ImageTypeSpecifier;
1 25 2 sampleModel Ljava/awt/image/SampleModel;
2 25 3 colorModel Ljava/awt/image/ColorModel;
3 25 4 sampleSize [I
4 25 5 bitDepth I
5 10 6 i I
13 25 6 numBands I
16 25 7 hasAlpha Z
MethodParameters:
Name Flags
type
public java.lang.String getDescription(java.util.Locale);
descriptor: (Ljava/util/Locale;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: ldc "Standard PNG image writer"
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/imageio/plugins/png/PNGImageWriterSpi;
0 1 1 locale Ljava/util/Locale;
MethodParameters:
Name Flags
locale
public javax.imageio.ImageWriter createWriterInstance(java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljavax/imageio/ImageWriter;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: new com.sun.imageio.plugins.png.PNGImageWriter
dup
aload 0
invokespecial com.sun.imageio.plugins.png.PNGImageWriter.<init>:(Ljavax/imageio/spi/ImageWriterSpi;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/imageio/plugins/png/PNGImageWriterSpi;
0 1 1 extension Ljava/lang/Object;
MethodParameters:
Name Flags
extension
}
SourceFile: "PNGImageWriterSpi.java"