class sun.print.ImagePrinter implements java.awt.print.Printable
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.print.ImagePrinter
super_class: java.lang.Object
{
java.awt.image.BufferedImage image;
descriptor: Ljava/awt/image/BufferedImage;
flags: (0x0000)
void <init>(java.io.InputStream);
descriptor: (Ljava/io/InputStream;)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
aload 1
invokestatic javax.imageio.ImageIO.read:(Ljava/io/InputStream;)Ljava/awt/image/BufferedImage;
putfield sun.print.ImagePrinter.image:Ljava/awt/image/BufferedImage;
2: goto 4
StackMap locals: sun.print.ImagePrinter java.io.InputStream
StackMap stack: java.lang.Exception
3: pop
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/print/ImagePrinter;
0 5 1 stream Ljava/io/InputStream;
Exception table:
from to target type
1 2 3 Class java.lang.Exception
MethodParameters:
Name Flags
stream
void <init>(java.net.URL);
descriptor: (Ljava/net/URL;)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
aload 1
invokestatic javax.imageio.ImageIO.read:(Ljava/net/URL;)Ljava/awt/image/BufferedImage;
putfield sun.print.ImagePrinter.image:Ljava/awt/image/BufferedImage;
2: goto 4
StackMap locals: sun.print.ImagePrinter java.net.URL
StackMap stack: java.lang.Exception
3: pop
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/print/ImagePrinter;
0 5 1 url Ljava/net/URL;
Exception table:
from to target type
1 2 3 Class java.lang.Exception
MethodParameters:
Name Flags
url
public int print(java.awt.Graphics, java.awt.print.PageFormat, int);
descriptor: (Ljava/awt/Graphics;Ljava/awt/print/PageFormat;I)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=11, locals=12, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 3
ifgt 1
aload 0
getfield sun.print.ImagePrinter.image:Ljava/awt/image/BufferedImage;
ifnonnull 2
1: StackMap locals:
StackMap stack:
iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 1
checkcast java.awt.Graphics2D
aload 2
invokevirtual java.awt.print.PageFormat.getImageableX:()D
aload 2
invokevirtual java.awt.print.PageFormat.getImageableY:()D
invokevirtual java.awt.Graphics2D.translate:(DD)V
3: aload 0
getfield sun.print.ImagePrinter.image:Ljava/awt/image/BufferedImage;
aconst_null
invokevirtual java.awt.image.BufferedImage.getWidth:(Ljava/awt/image/ImageObserver;)I
istore 4
start local 4 4: aload 0
getfield sun.print.ImagePrinter.image:Ljava/awt/image/BufferedImage;
aconst_null
invokevirtual java.awt.image.BufferedImage.getHeight:(Ljava/awt/image/ImageObserver;)I
istore 5
start local 5 5: aload 2
invokevirtual java.awt.print.PageFormat.getImageableWidth:()D
d2i
istore 6
start local 6 6: aload 2
invokevirtual java.awt.print.PageFormat.getImageableHeight:()D
d2i
istore 7
start local 7 7: iload 4
istore 8
start local 8 8: iload 5
istore 9
start local 9 9: iload 8
iload 6
if_icmple 12
10: iload 9
i2f
iload 6
i2f
iload 8
i2f
fdiv
fmul
f2i
istore 9
11: iload 6
istore 8
12: StackMap locals: sun.print.ImagePrinter java.awt.Graphics java.awt.print.PageFormat int int int int int int int
StackMap stack:
iload 9
iload 7
if_icmple 15
13: iload 8
i2f
iload 7
i2f
iload 9
i2f
fdiv
fmul
f2i
istore 8
14: iload 7
istore 9
15: StackMap locals:
StackMap stack:
iload 6
iload 8
isub
iconst_2
idiv
istore 10
start local 10 16: iload 7
iload 9
isub
iconst_2
idiv
istore 11
start local 11 17: aload 1
aload 0
getfield sun.print.ImagePrinter.image:Ljava/awt/image/BufferedImage;
iload 10
iload 11
iload 10
iload 8
iadd
iload 11
iload 9
iadd
iconst_0
iconst_0
iload 4
iload 5
aconst_null
invokevirtual java.awt.Graphics.drawImage:(Ljava/awt/Image;IIIIIIIILjava/awt/image/ImageObserver;)Z
pop
18: iconst_0
ireturn
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 19 0 this Lsun/print/ImagePrinter;
0 19 1 g Ljava/awt/Graphics;
0 19 2 pf Ljava/awt/print/PageFormat;
0 19 3 index I
4 19 4 w I
5 19 5 h I
6 19 6 iw I
7 19 7 ih I
8 19 8 dw I
9 19 9 dh I
16 19 10 dx I
17 19 11 dy I
MethodParameters:
Name Flags
g
pf
index
}
SourceFile: "ImagePrinter.java"