public class com.sun.xml.internal.messaging.saaj.soap.JpegDataContentHandler extends java.awt.Component implements javax.activation.DataContentHandler
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.sun.xml.internal.messaging.saaj.soap.JpegDataContentHandler
super_class: java.awt.Component
{
public static final java.lang.String STR_SRC;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "java.awt.Image"
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.awt.Component.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/xml/internal/messaging/saaj/soap/JpegDataContentHandler;
public DataFlavor[] getTransferDataFlavors();
descriptor: ()[LDataFlavor;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.Error
dup
ldc "Unresolved compilation problems: \n\tDataFlavor cannot be resolved to a type\n\tDataFlavor cannot be resolved to a type\n\tDataFlavor cannot be resolved to a type\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/xml/internal/messaging/saaj/soap/JpegDataContentHandler;
public java.lang.Object getTransferData(DataFlavor, javax.activation.DataSource);
descriptor: (LDataFlavor;Ljavax/activation/DataSource;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 0: new java.lang.Error
dup
ldc "Unresolved compilation problem: \n\tDataFlavor cannot be resolved to a type\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/xml/internal/messaging/saaj/soap/JpegDataContentHandler;
MethodParameters:
Name Flags
df
ds
public java.lang.Object getContent(javax.activation.DataSource);
descriptor: (Ljavax/activation/DataSource;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=4, args_size=2
start local 0 start local 1 0: aconst_null
astore 2
start local 2 1: aconst_null
astore 3
start local 3 2: aload 1
invokeinterface javax.activation.DataSource.getInputStream:()Ljava/io/InputStream;
astore 2
3: aload 2
invokestatic javax.imageio.ImageIO.read:(Ljava/io/InputStream;)Ljava/awt/image/BufferedImage;
astore 3
4: goto 6
StackMap locals: com.sun.xml.internal.messaging.saaj.soap.JpegDataContentHandler javax.activation.DataSource java.io.InputStream java.awt.image.BufferedImage
StackMap stack: java.lang.Exception
5: pop
6: StackMap locals:
StackMap stack:
aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/sun/xml/internal/messaging/saaj/soap/JpegDataContentHandler;
0 7 1 ds Ljavax/activation/DataSource;
1 7 2 inputStream Ljava/io/InputStream;
2 7 3 jpegLoadImage Ljava/awt/image/BufferedImage;
Exception table:
from to target type
2 4 5 Class java.lang.Exception
MethodParameters:
Name Flags
ds
public void writeTo(java.lang.Object, java.lang.String, java.io.OutputStream);
descriptor: (Ljava/lang/Object;Ljava/lang/String;Ljava/io/OutputStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
ldc "image/jpeg"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 7
1: new java.io.IOException
dup
2: new java.lang.StringBuilder
dup
ldc "Invalid content type \""
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
3: aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
4: ldc "\" for ImageContentHandler"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
5: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
6: invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals:
StackMap stack:
aload 1
ifnonnull 9
8: new java.io.IOException
dup
ldc "Null object for ImageContentHandler"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
9: StackMap locals:
StackMap stack:
aconst_null
astore 4
start local 4 10: aload 1
instanceof java.awt.image.BufferedImage
ifeq 13
11: aload 1
checkcast java.awt.image.BufferedImage
astore 4
12: goto 27
13: StackMap locals: java.awt.image.BufferedImage
StackMap stack:
aload 1
checkcast java.awt.Image
astore 5
start local 5 14: new java.awt.MediaTracker
dup
aload 0
invokespecial java.awt.MediaTracker.<init>:(Ljava/awt/Component;)V
astore 6
start local 6 15: aload 6
aload 5
iconst_0
invokevirtual java.awt.MediaTracker.addImage:(Ljava/awt/Image;I)V
16: aload 6
invokevirtual java.awt.MediaTracker.waitForAll:()V
17: aload 6
invokevirtual java.awt.MediaTracker.isErrorAny:()Z
ifeq 19
18: new java.io.IOException
dup
ldc "Error while loading image"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
19: StackMap locals: java.awt.Image java.awt.MediaTracker
StackMap stack:
new java.awt.image.BufferedImage
dup
20: aload 5
aconst_null
invokevirtual java.awt.Image.getWidth:(Ljava/awt/image/ImageObserver;)I
21: aload 5
aconst_null
invokevirtual java.awt.Image.getHeight:(Ljava/awt/image/ImageObserver;)I
22: iconst_1
23: invokespecial java.awt.image.BufferedImage.<init>:(III)V
24: astore 4
25: aload 4
invokevirtual java.awt.image.BufferedImage.createGraphics:()Ljava/awt/Graphics2D;
astore 7
start local 7 26: aload 7
aload 5
iconst_0
iconst_0
aconst_null
invokevirtual java.awt.Graphics.drawImage:(Ljava/awt/Image;IILjava/awt/image/ImageObserver;)Z
pop
end local 7 end local 6 end local 5 27: StackMap locals:
StackMap stack:
aload 4
ldc "jpeg"
aload 3
invokestatic javax.imageio.ImageIO.write:(Ljava/awt/image/RenderedImage;Ljava/lang/String;Ljava/io/OutputStream;)Z
pop
end local 4 28: goto 35
StackMap locals: com.sun.xml.internal.messaging.saaj.soap.JpegDataContentHandler java.lang.Object java.lang.String java.io.OutputStream
StackMap stack: java.lang.Exception
29: astore 4
start local 4 30: new java.io.IOException
dup
31: new java.lang.StringBuilder
dup
ldc "Unable to run the JPEG Encoder on a stream "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
32: aload 4
invokevirtual java.lang.Exception.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
33: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
34: invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
end local 4 35: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 36 0 this Lcom/sun/xml/internal/messaging/saaj/soap/JpegDataContentHandler;
0 36 1 obj Ljava/lang/Object;
0 36 2 mimeType Ljava/lang/String;
0 36 3 os Ljava/io/OutputStream;
10 28 4 bufImage Ljava/awt/image/BufferedImage;
14 27 5 img Ljava/awt/Image;
15 27 6 tracker Ljava/awt/MediaTracker;
26 27 7 g Ljava/awt/Graphics;
30 35 4 ex Ljava/lang/Exception;
Exception table:
from to target type
9 28 29 Class java.lang.Exception
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
obj
mimeType
os
public java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor, javax.activation.DataSource);
descriptor: (Ljava/awt/datatransfer/DataFlavor;Ljavax/activation/DataSource;)Ljava/lang/Object;
flags: (0x1001) ACC_PUBLIC, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
0: new java.lang.Error
dup
ldc "Unresolved compilation problem: \n\tThe type JpegDataContentHandler must implement the inherited abstract method DataContentHandler.getTransferData(DataFlavor, DataSource)\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws java.awt.datatransfer.UnsupportedFlavorException, java.io.IOException
MethodParameters:
Name Flags
public java.awt.datatransfer.DataFlavor[] getTransferDataFlavors();
descriptor: ()[Ljava/awt/datatransfer/DataFlavor;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual com.sun.xml.internal.messaging.saaj.soap.JpegDataContentHandler.getTransferDataFlavors:()[LDataFlavor;
checkcast java.awt.datatransfer.DataFlavor[]
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "JpegDataContentHandler.java"