public class sun.print.CUPSPrinter
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.print.CUPSPrinter
super_class: java.lang.Object
{
private static final java.lang.String debugPrefix;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "CUPSPrinter>> "
private static final double PRINTER_DPI;
descriptor: D
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 72.0
private boolean initialized;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private javax.print.attribute.standard.MediaPrintableArea[] cupsMediaPrintables;
descriptor: [Ljavax/print/attribute/standard/MediaPrintableArea;
flags: (0x0002) ACC_PRIVATE
private javax.print.attribute.standard.MediaSizeName[] cupsMediaSNames;
descriptor: [Ljavax/print/attribute/standard/MediaSizeName;
flags: (0x0002) ACC_PRIVATE
private sun.print.CustomMediaSizeName[] cupsCustomMediaSNames;
descriptor: [Lsun/print/CustomMediaSizeName;
flags: (0x0002) ACC_PRIVATE
private javax.print.attribute.standard.MediaTray[] cupsMediaTrays;
descriptor: [Ljavax/print/attribute/standard/MediaTray;
flags: (0x0002) ACC_PRIVATE
public int nPageSizes;
descriptor: I
flags: (0x0001) ACC_PUBLIC
public int nTrays;
descriptor: I
flags: (0x0001) ACC_PUBLIC
private java.lang.String[] media;
descriptor: [Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private float[] pageSizes;
descriptor: [F
flags: (0x0002) ACC_PRIVATE
private java.lang.String printer;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private static boolean libFound;
descriptor: Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static java.lang.String cupsServer;
descriptor: Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static int cupsPort;
descriptor: I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc Lsun/print/CUPSPrinter;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic sun.print.CUPSPrinter.$assertionsDisabled:Z
3: aconst_null
putstatic sun.print.CUPSPrinter.cupsServer:Ljava/lang/String;
4: iconst_0
putstatic sun.print.CUPSPrinter.cupsPort:I
5: new sun.print.CUPSPrinter$1
dup
invokespecial sun.print.CUPSPrinter$1.<init>:()V
6: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
pop
7: invokestatic sun.print.CUPSPrinter.initIDs:()Z
putstatic sun.print.CUPSPrinter.libFound:Z
8: getstatic sun.print.CUPSPrinter.libFound:Z
ifeq 11
9: invokestatic sun.print.CUPSPrinter.getCupsServer:()Ljava/lang/String;
putstatic sun.print.CUPSPrinter.cupsServer:Ljava/lang/String;
10: invokestatic sun.print.CUPSPrinter.getCupsPort:()I
putstatic sun.print.CUPSPrinter.cupsPort:I
11: StackMap locals:
StackMap stack:
return
LocalVariableTable:
Start End Slot Name Signature
private static native java.lang.String getCupsServer();
descriptor: ()Ljava/lang/String;
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
private static native int getCupsPort();
descriptor: ()I
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
private static native java.lang.String getCupsDefaultPrinter();
descriptor: ()Ljava/lang/String;
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
private static native boolean canConnect(java.lang.String, int);
descriptor: (Ljava/lang/String;I)Z
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
MethodParameters:
Name Flags
server
port
private static native boolean initIDs();
descriptor: ()Z
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
private static synchronized native java.lang.String[] getMedia(java.lang.String);
descriptor: (Ljava/lang/String;)[Ljava/lang/String;
flags: (0x012a) ACC_PRIVATE, ACC_STATIC, ACC_SYNCHRONIZED, ACC_NATIVE
MethodParameters:
Name Flags
printer
private static synchronized native float[] getPageSizes(java.lang.String);
descriptor: (Ljava/lang/String;)[F
flags: (0x012a) ACC_PRIVATE, ACC_STATIC, ACC_SYNCHRONIZED, ACC_NATIVE
MethodParameters:
Name Flags
printer
void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_0
putfield sun.print.CUPSPrinter.nPageSizes:I
2: aload 0
iconst_0
putfield sun.print.CUPSPrinter.nTrays:I
3: aload 1
ifnonnull 5
4: new java.lang.IllegalArgumentException
dup
ldc "null printer name"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals: sun.print.CUPSPrinter java.lang.String
StackMap stack:
aload 0
aload 1
putfield sun.print.CUPSPrinter.printer:Ljava/lang/String;
6: aload 0
aconst_null
putfield sun.print.CUPSPrinter.cupsMediaSNames:[Ljavax/print/attribute/standard/MediaSizeName;
7: aload 0
aconst_null
putfield sun.print.CUPSPrinter.cupsMediaPrintables:[Ljavax/print/attribute/standard/MediaPrintableArea;
8: aload 0
aconst_null
putfield sun.print.CUPSPrinter.cupsMediaTrays:[Ljavax/print/attribute/standard/MediaTray;
9: aload 0
iconst_0
putfield sun.print.CUPSPrinter.initialized:Z
10: getstatic sun.print.CUPSPrinter.libFound:Z
ifne 12
11: new java.lang.RuntimeException
dup
ldc "cups lib not found"
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
12: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield sun.print.CUPSPrinter.printer:Ljava/lang/String;
invokestatic sun.print.CUPSPrinter.getMedia:(Ljava/lang/String;)[Ljava/lang/String;
putfield sun.print.CUPSPrinter.media:[Ljava/lang/String;
13: aload 0
getfield sun.print.CUPSPrinter.media:[Ljava/lang/String;
ifnonnull 15
14: new java.lang.RuntimeException
dup
ldc "error getting PPD"
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
15: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield sun.print.CUPSPrinter.printer:Ljava/lang/String;
invokestatic sun.print.CUPSPrinter.getPageSizes:(Ljava/lang/String;)[F
putfield sun.print.CUPSPrinter.pageSizes:[F
16: aload 0
getfield sun.print.CUPSPrinter.pageSizes:[F
ifnull 20
17: aload 0
aload 0
getfield sun.print.CUPSPrinter.pageSizes:[F
arraylength
bipush 6
idiv
putfield sun.print.CUPSPrinter.nPageSizes:I
18: aload 0
aload 0
getfield sun.print.CUPSPrinter.media:[Ljava/lang/String;
arraylength
iconst_2
idiv
aload 0
getfield sun.print.CUPSPrinter.nPageSizes:I
isub
putfield sun.print.CUPSPrinter.nTrays:I
19: getstatic sun.print.CUPSPrinter.$assertionsDisabled:Z
ifne 20
aload 0
getfield sun.print.CUPSPrinter.nTrays:I
ifge 20
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
20: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Lsun/print/CUPSPrinter;
0 21 1 printerName Ljava/lang/String;
MethodParameters:
Name Flags
printerName
javax.print.attribute.standard.MediaSizeName[] getMediaSizeNames();
descriptor: ()[Ljavax/print/attribute/standard/MediaSizeName;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual sun.print.CUPSPrinter.initMedia:()V
1: aload 0
getfield sun.print.CUPSPrinter.cupsMediaSNames:[Ljavax/print/attribute/standard/MediaSizeName;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/print/CUPSPrinter;
sun.print.CustomMediaSizeName[] getCustomMediaSizeNames();
descriptor: ()[Lsun/print/CustomMediaSizeName;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual sun.print.CUPSPrinter.initMedia:()V
1: aload 0
getfield sun.print.CUPSPrinter.cupsCustomMediaSNames:[Lsun/print/CustomMediaSizeName;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/print/CUPSPrinter;
public int getDefaultMediaIndex();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.print.CUPSPrinter.pageSizes:[F
arraylength
iconst_1
if_icmple 1
aload 0
getfield sun.print.CUPSPrinter.pageSizes:[F
aload 0
getfield sun.print.CUPSPrinter.pageSizes:[F
arraylength
iconst_1
isub
faload
f2i
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/print/CUPSPrinter;
javax.print.attribute.standard.MediaPrintableArea[] getMediaPrintableArea();
descriptor: ()[Ljavax/print/attribute/standard/MediaPrintableArea;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual sun.print.CUPSPrinter.initMedia:()V
1: aload 0
getfield sun.print.CUPSPrinter.cupsMediaPrintables:[Ljavax/print/attribute/standard/MediaPrintableArea;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/print/CUPSPrinter;
javax.print.attribute.standard.MediaTray[] getMediaTrays();
descriptor: ()[Ljavax/print/attribute/standard/MediaTray;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual sun.print.CUPSPrinter.initMedia:()V
1: aload 0
getfield sun.print.CUPSPrinter.cupsMediaTrays:[Ljavax/print/attribute/standard/MediaTray;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/print/CUPSPrinter;
private synchronized void initMedia();
descriptor: ()V
flags: (0x0022) ACC_PRIVATE, ACC_SYNCHRONIZED
Code:
stack=7, locals=11, args_size=1
start local 0 0: aload 0
getfield sun.print.CUPSPrinter.initialized:Z
ifeq 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield sun.print.CUPSPrinter.initialized:Z
3: aload 0
getfield sun.print.CUPSPrinter.pageSizes:[F
ifnonnull 5
4: return
5: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield sun.print.CUPSPrinter.nPageSizes:I
anewarray javax.print.attribute.standard.MediaPrintableArea
putfield sun.print.CUPSPrinter.cupsMediaPrintables:[Ljavax/print/attribute/standard/MediaPrintableArea;
6: aload 0
aload 0
getfield sun.print.CUPSPrinter.nPageSizes:I
anewarray javax.print.attribute.standard.MediaSizeName
putfield sun.print.CUPSPrinter.cupsMediaSNames:[Ljavax/print/attribute/standard/MediaSizeName;
7: aload 0
aload 0
getfield sun.print.CUPSPrinter.nPageSizes:I
anewarray sun.print.CustomMediaSizeName
putfield sun.print.CUPSPrinter.cupsCustomMediaSNames:[Lsun/print/CustomMediaSizeName;
8: iconst_0
istore 9
start local 9 9: goto 41
10: StackMap locals: sun.print.CUPSPrinter top top top top top top top top int
StackMap stack:
aload 0
getfield sun.print.CUPSPrinter.pageSizes:[F
iload 9
bipush 6
imul
faload
f2d
ldc 72.0
ddiv
d2f
fstore 4
start local 4 11: aload 0
getfield sun.print.CUPSPrinter.pageSizes:[F
iload 9
bipush 6
imul
iconst_1
iadd
faload
f2d
ldc 72.0
ddiv
d2f
fstore 3
start local 3 12: aload 0
getfield sun.print.CUPSPrinter.pageSizes:[F
iload 9
bipush 6
imul
iconst_2
iadd
faload
f2d
ldc 72.0
ddiv
d2f
fstore 5
start local 5 13: aload 0
getfield sun.print.CUPSPrinter.pageSizes:[F
iload 9
bipush 6
imul
iconst_3
iadd
faload
f2d
ldc 72.0
ddiv
d2f
fstore 8
start local 8 14: aload 0
getfield sun.print.CUPSPrinter.pageSizes:[F
iload 9
bipush 6
imul
iconst_4
iadd
faload
f2d
ldc 72.0
ddiv
d2f
fstore 7
start local 7 15: aload 0
getfield sun.print.CUPSPrinter.pageSizes:[F
iload 9
bipush 6
imul
iconst_5
iadd
faload
f2d
ldc 72.0
ddiv
d2f
fstore 6
start local 6 16: new sun.print.CustomMediaSizeName
dup
aload 0
getfield sun.print.CUPSPrinter.media:[Ljava/lang/String;
iload 9
iconst_2
imul
aaload
aload 0
getfield sun.print.CUPSPrinter.media:[Ljava/lang/String;
iload 9
iconst_2
imul
iconst_1
iadd
aaload
17: fload 4
fload 3
18: invokespecial sun.print.CustomMediaSizeName.<init>:(Ljava/lang/String;Ljava/lang/String;FF)V
astore 1
start local 1 19: aload 0
getfield sun.print.CUPSPrinter.cupsMediaSNames:[Ljavax/print/attribute/standard/MediaSizeName;
iload 9
aload 1
invokevirtual sun.print.CustomMediaSizeName.getStandardMedia:()Ljavax/print/attribute/standard/MediaSizeName;
dup_x2
aastore
ifnonnull 28
20: aload 0
getfield sun.print.CUPSPrinter.cupsMediaSNames:[Ljavax/print/attribute/standard/MediaSizeName;
iload 9
aload 1
aastore
21: fload 4
f2d
dconst_0
dcmpl
ifle 28
fload 3
f2d
dconst_0
dcmpl
ifle 28
22: new javax.print.attribute.standard.MediaSize
fload 4
fload 3
23: sipush 25400
aload 1
24: invokespecial javax.print.attribute.standard.MediaSize.<init>:(FFILjavax/print/attribute/standard/MediaSizeName;)V
25: goto 28
StackMap locals: sun.print.CUPSPrinter sun.print.CustomMediaSizeName top float float float float float float int
StackMap stack: java.lang.IllegalArgumentException
26: pop
27: new javax.print.attribute.standard.MediaSize
fload 3
fload 4
sipush 25400
aload 1
invokespecial javax.print.attribute.standard.MediaSize.<init>:(FFILjavax/print/attribute/standard/MediaSizeName;)V
28: StackMap locals:
StackMap stack:
aload 0
getfield sun.print.CUPSPrinter.cupsCustomMediaSNames:[Lsun/print/CustomMediaSizeName;
iload 9
aload 1
aastore
29: aconst_null
astore 2
start local 2 30: new javax.print.attribute.standard.MediaPrintableArea
dup
fload 5
fload 6
fload 7
fload 8
31: sipush 25400
32: invokespecial javax.print.attribute.standard.MediaPrintableArea.<init>:(FFFFI)V
astore 2
33: goto 39
StackMap locals: sun.print.CUPSPrinter sun.print.CustomMediaSizeName javax.print.attribute.standard.MediaPrintableArea float float float float float float int
StackMap stack: java.lang.IllegalArgumentException
34: pop
35: fload 4
fconst_0
fcmpl
ifle 39
fload 3
fconst_0
fcmpl
ifle 39
36: new javax.print.attribute.standard.MediaPrintableArea
dup
fconst_0
fconst_0
fload 4
fload 3
37: sipush 25400
38: invokespecial javax.print.attribute.standard.MediaPrintableArea.<init>:(FFFFI)V
astore 2
39: StackMap locals:
StackMap stack:
aload 0
getfield sun.print.CUPSPrinter.cupsMediaPrintables:[Ljavax/print/attribute/standard/MediaPrintableArea;
iload 9
aload 2
aastore
40: iinc 9 1
end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 StackMap locals: sun.print.CUPSPrinter top top top top top top top top int
StackMap stack:
41: iload 9
aload 0
getfield sun.print.CUPSPrinter.nPageSizes:I
if_icmplt 10
end local 9 42: aload 0
aload 0
getfield sun.print.CUPSPrinter.nTrays:I
anewarray javax.print.attribute.standard.MediaTray
putfield sun.print.CUPSPrinter.cupsMediaTrays:[Ljavax/print/attribute/standard/MediaTray;
43: iconst_0
istore 10
start local 10 44: goto 50
45: StackMap locals: sun.print.CUPSPrinter top top top top top top top top top int
StackMap stack:
new sun.print.CustomMediaTray
dup
aload 0
getfield sun.print.CUPSPrinter.media:[Ljava/lang/String;
aload 0
getfield sun.print.CUPSPrinter.nPageSizes:I
iload 10
iadd
iconst_2
imul
aaload
46: aload 0
getfield sun.print.CUPSPrinter.media:[Ljava/lang/String;
aload 0
getfield sun.print.CUPSPrinter.nPageSizes:I
iload 10
iadd
iconst_2
imul
iconst_1
iadd
aaload
47: invokespecial sun.print.CustomMediaTray.<init>:(Ljava/lang/String;Ljava/lang/String;)V
astore 9
start local 9 48: aload 0
getfield sun.print.CUPSPrinter.cupsMediaTrays:[Ljavax/print/attribute/standard/MediaTray;
iload 10
aload 9
aastore
49: iinc 10 1
end local 9 StackMap locals:
StackMap stack:
50: iload 10
aload 0
getfield sun.print.CUPSPrinter.nTrays:I
if_icmplt 45
end local 10 51: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 52 0 this Lsun/print/CUPSPrinter;
19 41 1 msn Lsun/print/CustomMediaSizeName;
30 41 2 mpa Ljavax/print/attribute/standard/MediaPrintableArea;
12 41 3 length F
11 41 4 width F
13 41 5 x F
16 41 6 y F
15 41 7 w F
14 41 8 h F
9 42 9 i I
48 50 9 mt Ljavax/print/attribute/standard/MediaTray;
44 51 10 i I
Exception table:
from to target type
22 25 26 Class java.lang.IllegalArgumentException
30 33 34 Class java.lang.IllegalArgumentException
static java.lang.String[] getDefaultPrinter();
descriptor: ()[Ljava/lang/String;
flags: (0x0008) ACC_STATIC
Code:
stack=8, locals=9, args_size=0
0: iconst_2
anewarray java.lang.String
astore 0
start local 0 1: aload 0
iconst_0
invokestatic sun.print.CUPSPrinter.getCupsDefaultPrinter:()Ljava/lang/String;
aastore
2: aload 0
iconst_0
aaload
ifnull 5
3: aload 0
iconst_1
aconst_null
aastore
4: aload 0
invokevirtual java.lang.String[].clone:()Ljava/lang/Object;
checkcast java.lang.String[]
areturn
5: StackMap locals: java.lang.String[]
StackMap stack:
new java.net.URL
dup
ldc "http"
invokestatic sun.print.CUPSPrinter.getServer:()Ljava/lang/String;
invokestatic sun.print.CUPSPrinter.getPort:()I
ldc ""
invokespecial java.net.URL.<init>:(Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;)V
astore 1
start local 1 6: aload 1
invokestatic sun.print.IPPPrintService.getIPPConnection:(Ljava/net/URL;)Ljava/net/HttpURLConnection;
7: astore 2
start local 2 8: aload 2
ifnull 67
9: new sun.print.CUPSPrinter$2
dup
aload 2
invokespecial sun.print.CUPSPrinter$2.<init>:(Ljava/net/HttpURLConnection;)V
invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.io.OutputStream
10: astore 3
start local 3 11: aload 3
ifnonnull 13
12: aconst_null
areturn
13: StackMap locals: java.net.URL java.net.HttpURLConnection java.io.OutputStream
StackMap stack:
iconst_3
anewarray sun.print.AttributeClass
dup
iconst_0
14: getstatic sun.print.AttributeClass.ATTRIBUTES_CHARSET:Lsun/print/AttributeClass;
aastore
dup
iconst_1
15: getstatic sun.print.AttributeClass.ATTRIBUTES_NATURAL_LANGUAGE:Lsun/print/AttributeClass;
aastore
dup
iconst_2
16: new sun.print.AttributeClass
dup
ldc "requested-attributes"
17: bipush 69
18: ldc "printer-uri"
19: invokespecial sun.print.AttributeClass.<init>:(Ljava/lang/String;ILjava/lang/Object;)V
aastore
20: astore 4
start local 4 21: aload 3
22: ldc "4001"
23: aload 4
24: invokestatic sun.print.IPPPrintService.writeIPPRequest:(Ljava/io/OutputStream;Ljava/lang/String;[Lsun/print/AttributeClass;)Z
25: ifeq 63
26: aconst_null
astore 5
start local 5 27: aload 2
invokevirtual java.net.HttpURLConnection.getInputStream:()Ljava/io/InputStream;
astore 6
start local 6 28: aload 6
29: invokestatic sun.print.IPPPrintService.readIPPResponse:(Ljava/io/InputStream;)[Ljava/util/HashMap;
astore 7
start local 7 30: aload 6
invokevirtual java.io.InputStream.close:()V
31: aload 7
ifnull 34
aload 7
arraylength
ifle 34
32: aload 7
iconst_0
aaload
astore 5
33: goto 35
34: StackMap locals: java.lang.String[] java.net.URL java.net.HttpURLConnection java.io.OutputStream sun.print.AttributeClass[] java.util.HashMap java.io.InputStream java.util.HashMap[]
StackMap stack:
ldc "CUPSPrinter>> empty response map for GET_DEFAULT."
invokestatic sun.print.IPPPrintService.debug_println:(Ljava/lang/String;)V
35: StackMap locals:
StackMap stack:
aload 5
ifnonnull 46
36: aload 3
invokevirtual java.io.OutputStream.close:()V
37: aload 2
invokevirtual java.net.HttpURLConnection.disconnect:()V
38: invokestatic sun.print.PrintServiceLookupProvider.isMac:()Z
ifeq 45
39: aload 0
iconst_0
40: invokestatic sun.print.PrintServiceLookupProvider.getDefaultPrinterNameSysV:()Ljava/lang/String;
41: aastore
42: aload 0
iconst_1
aconst_null
aastore
43: aload 0
invokevirtual java.lang.String[].clone:()Ljava/lang/Object;
checkcast java.lang.String[]
44: areturn
45: StackMap locals:
StackMap stack:
aconst_null
areturn
46: StackMap locals:
StackMap stack:
aload 5
ldc "printer-name"
invokevirtual java.util.HashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast sun.print.AttributeClass
47: astore 8
start local 8 48: aload 8
ifnull 63
49: aload 0
iconst_0
aload 8
invokevirtual sun.print.AttributeClass.getStringValue:()Ljava/lang/String;
aastore
50: aload 5
ldc "printer-uri-supported"
invokevirtual java.util.HashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast sun.print.AttributeClass
51: astore 8
52: new java.lang.StringBuilder
dup
ldc "CUPSPrinter>> printer-uri-supported="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
53: aload 8
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
54: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic sun.print.IPPPrintService.debug_println:(Ljava/lang/String;)V
55: aload 8
ifnull 58
56: aload 0
iconst_1
aload 8
invokevirtual sun.print.AttributeClass.getStringValue:()Ljava/lang/String;
aastore
57: goto 59
58: StackMap locals: sun.print.AttributeClass
StackMap stack:
aload 0
iconst_1
aconst_null
aastore
59: StackMap locals:
StackMap stack:
aload 3
invokevirtual java.io.OutputStream.close:()V
60: aload 2
invokevirtual java.net.HttpURLConnection.disconnect:()V
61: aload 0
invokevirtual java.lang.String[].clone:()Ljava/lang/Object;
checkcast java.lang.String[]
62: areturn
end local 8 end local 7 end local 6 end local 5 63: StackMap locals: java.lang.String[] java.net.URL java.net.HttpURLConnection java.io.OutputStream sun.print.AttributeClass[]
StackMap stack:
aload 3
invokevirtual java.io.OutputStream.close:()V
64: aload 2
invokevirtual java.net.HttpURLConnection.disconnect:()V
end local 4 end local 3 end local 2 end local 1 65: goto 67
StackMap locals: java.lang.String[]
StackMap stack: java.lang.Exception
66: pop
67: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 68 0 printerInfo [Ljava/lang/String;
6 65 1 url Ljava/net/URL;
8 65 2 urlConnection Ljava/net/HttpURLConnection;
11 65 3 os Ljava/io/OutputStream;
21 65 4 attCl [Lsun/print/AttributeClass;
27 63 5 defaultMap Ljava/util/HashMap;
28 63 6 is Ljava/io/InputStream;
30 63 7 responseMap [Ljava/util/HashMap;
48 63 8 attribClass Lsun/print/AttributeClass;
Exception table:
from to target type
5 12 66 Class java.lang.Exception
13 44 66 Class java.lang.Exception
46 62 66 Class java.lang.Exception
63 65 66 Class java.lang.Exception
static java.lang.String[] getAllPrinters();
descriptor: ()[Ljava/lang/String;
flags: (0x0008) ACC_STATIC
Code:
stack=8, locals=10, args_size=0
0: new java.net.URL
dup
ldc "http"
invokestatic sun.print.CUPSPrinter.getServer:()Ljava/lang/String;
invokestatic sun.print.CUPSPrinter.getPort:()I
ldc ""
invokespecial java.net.URL.<init>:(Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;)V
astore 0
start local 0 1: aload 0
invokestatic sun.print.IPPPrintService.getIPPConnection:(Ljava/net/URL;)Ljava/net/HttpURLConnection;
2: astore 1
start local 1 3: aload 1
ifnull 44
4: new sun.print.CUPSPrinter$3
dup
aload 1
invokespecial sun.print.CUPSPrinter$3.<init>:(Ljava/net/HttpURLConnection;)V
invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.io.OutputStream
5: astore 2
start local 2 6: aload 2
ifnonnull 8
7: aconst_null
areturn
8: StackMap locals: java.net.URL java.net.HttpURLConnection java.io.OutputStream
StackMap stack:
iconst_3
anewarray sun.print.AttributeClass
dup
iconst_0
9: getstatic sun.print.AttributeClass.ATTRIBUTES_CHARSET:Lsun/print/AttributeClass;
aastore
dup
iconst_1
10: getstatic sun.print.AttributeClass.ATTRIBUTES_NATURAL_LANGUAGE:Lsun/print/AttributeClass;
aastore
dup
iconst_2
11: new sun.print.AttributeClass
dup
ldc "requested-attributes"
12: bipush 68
13: ldc "printer-uri-supported"
14: invokespecial sun.print.AttributeClass.<init>:(Ljava/lang/String;ILjava/lang/Object;)V
aastore
15: astore 3
start local 3 16: aload 2
17: ldc "4002"
aload 3
18: invokestatic sun.print.IPPPrintService.writeIPPRequest:(Ljava/io/OutputStream;Ljava/lang/String;[Lsun/print/AttributeClass;)Z
19: ifeq 40
20: aload 1
invokevirtual java.net.HttpURLConnection.getInputStream:()Ljava/io/InputStream;
astore 4
start local 4 21: aload 4
invokestatic sun.print.IPPPrintService.readIPPResponse:(Ljava/io/InputStream;)[Ljava/util/HashMap;
22: astore 5
start local 5 23: aload 4
invokevirtual java.io.InputStream.close:()V
24: aload 2
invokevirtual java.io.OutputStream.close:()V
25: aload 1
invokevirtual java.net.HttpURLConnection.disconnect:()V
26: aload 5
ifnull 27
aload 5
arraylength
ifne 28
27: StackMap locals: sun.print.AttributeClass[] java.io.InputStream java.util.HashMap[]
StackMap stack:
aconst_null
areturn
28: StackMap locals:
StackMap stack:
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 6
start local 6 29: iconst_0
istore 7
start local 7 30: goto 37
31: StackMap locals: java.util.ArrayList int
StackMap stack:
aload 5
iload 7
aaload
ldc "printer-uri-supported"
invokevirtual java.util.HashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast sun.print.AttributeClass
32: astore 8
start local 8 33: aload 8
ifnull 36
34: aload 8
invokevirtual sun.print.AttributeClass.getStringValue:()Ljava/lang/String;
astore 9
start local 9 35: aload 6
aload 9
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
end local 9 end local 8 36: StackMap locals:
StackMap stack:
iinc 7 1
StackMap locals:
StackMap stack:
37: iload 7
aload 5
arraylength
if_icmplt 31
end local 7 38: aload 6
iconst_0
anewarray java.lang.String
invokevirtual java.util.ArrayList.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast java.lang.String[]
39: areturn
end local 6 end local 5 end local 4 40: StackMap locals: java.net.URL java.net.HttpURLConnection java.io.OutputStream sun.print.AttributeClass[]
StackMap stack:
aload 2
invokevirtual java.io.OutputStream.close:()V
41: aload 1
invokevirtual java.net.HttpURLConnection.disconnect:()V
end local 3 end local 2 end local 1 end local 0 42: goto 44
StackMap locals:
StackMap stack: java.lang.Exception
43: pop
44: StackMap locals:
StackMap stack:
aconst_null
areturn
LocalVariableTable:
Start End Slot Name Signature
1 42 0 url Ljava/net/URL;
3 42 1 urlConnection Ljava/net/HttpURLConnection;
6 42 2 os Ljava/io/OutputStream;
16 42 3 attCl [Lsun/print/AttributeClass;
21 40 4 is Ljava/io/InputStream;
23 40 5 responseMap [Ljava/util/HashMap;
29 40 6 printerNames Ljava/util/ArrayList;
30 38 7 i I
33 36 8 attribClass Lsun/print/AttributeClass;
35 36 9 nameStr Ljava/lang/String;
Exception table:
from to target type
0 7 43 Class java.lang.Exception
8 27 43 Class java.lang.Exception
28 39 43 Class java.lang.Exception
40 42 43 Class java.lang.Exception
public static java.lang.String getServer();
descriptor: ()Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic sun.print.CUPSPrinter.cupsServer:Ljava/lang/String;
areturn
LocalVariableTable:
Start End Slot Name Signature
public static int getPort();
descriptor: ()I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic sun.print.CUPSPrinter.cupsPort:I
ireturn
LocalVariableTable:
Start End Slot Name Signature
public static boolean isCupsRunning();
descriptor: ()Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: new java.lang.StringBuilder
dup
ldc "CUPSPrinter>> libFound "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
getstatic sun.print.CUPSPrinter.libFound:Z
invokevirtual java.lang.StringBuilder.append:(Z)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic sun.print.IPPPrintService.debug_println:(Ljava/lang/String;)V
1: getstatic sun.print.CUPSPrinter.libFound:Z
ifeq 6
2: new java.lang.StringBuilder
dup
ldc "CUPSPrinter>> CUPS server "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
invokestatic sun.print.CUPSPrinter.getServer:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
3: ldc " port "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokestatic sun.print.CUPSPrinter.getPort:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
4: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic sun.print.IPPPrintService.debug_println:(Ljava/lang/String;)V
5: invokestatic sun.print.CUPSPrinter.getServer:()Ljava/lang/String;
invokestatic sun.print.CUPSPrinter.getPort:()I
invokestatic sun.print.CUPSPrinter.canConnect:(Ljava/lang/String;I)Z
ireturn
6: StackMap locals:
StackMap stack:
iconst_0
ireturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "CUPSPrinter.java"
NestMembers:
sun.print.CUPSPrinter$1 sun.print.CUPSPrinter$2 sun.print.CUPSPrinter$3
InnerClasses:
sun.print.CUPSPrinter$1
sun.print.CUPSPrinter$2
sun.print.CUPSPrinter$3