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=3, 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.security.action.LoadLibraryAction
dup
ldc "awt"
invokespecial sun.security.action.LoadLibraryAction.<init>:(Ljava/lang/String;)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 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;
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 38
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 25
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 25
fload 3
f2d
dconst_0
dcmpl
ifle 25
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: StackMap locals: sun.print.CUPSPrinter sun.print.CustomMediaSizeName top float float float float float float int
StackMap stack:
aload 0
getfield sun.print.CUPSPrinter.cupsCustomMediaSNames:[Lsun/print/CustomMediaSizeName;
iload 9
aload 1
aastore
26: aconst_null
astore 2
start local 2 27: new javax.print.attribute.standard.MediaPrintableArea
dup
fload 5
fload 6
fload 7
fload 8
28: sipush 25400
29: invokespecial javax.print.attribute.standard.MediaPrintableArea.<init>:(FFFFI)V
astore 2
30: goto 36
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
31: pop
32: fload 4
fconst_0
fcmpl
ifle 36
fload 3
fconst_0
fcmpl
ifle 36
33: new javax.print.attribute.standard.MediaPrintableArea
dup
fconst_0
fconst_0
fload 4
fload 3
34: sipush 25400
35: invokespecial javax.print.attribute.standard.MediaPrintableArea.<init>:(FFFFI)V
astore 2
36: StackMap locals:
StackMap stack:
aload 0
getfield sun.print.CUPSPrinter.cupsMediaPrintables:[Ljavax/print/attribute/standard/MediaPrintableArea;
iload 9
aload 2
aastore
37: 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:
38: iload 9
aload 0
getfield sun.print.CUPSPrinter.nPageSizes:I
if_icmplt 10
end local 9 39: 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;
40: iconst_0
istore 10
start local 10 41: goto 47
42: 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
43: 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
44: invokespecial sun.print.CustomMediaTray.<init>:(Ljava/lang/String;Ljava/lang/String;)V
astore 9
start local 9 45: aload 0
getfield sun.print.CUPSPrinter.cupsMediaTrays:[Ljavax/print/attribute/standard/MediaTray;
iload 10
aload 9
aastore
46: iinc 10 1
end local 9 StackMap locals:
StackMap stack:
47: iload 10
aload 0
getfield sun.print.CUPSPrinter.nTrays:I
if_icmplt 42
end local 10 48: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 49 0 this Lsun/print/CUPSPrinter;
19 38 1 msn Lsun/print/CustomMediaSizeName;
27 38 2 mpa Ljavax/print/attribute/standard/MediaPrintableArea;
12 38 3 length F
11 38 4 width F
13 38 5 x F
16 38 6 y F
15 38 7 w F
14 38 8 h F
9 39 9 i I
45 47 9 mt Ljavax/print/attribute/standard/MediaTray;
41 48 10 i I
Exception table:
from to target type
27 30 31 Class java.lang.IllegalArgumentException
public static java.lang.String getDefaultPrinter();
descriptor: ()Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=8, locals=9, 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 47
4: new sun.print.CUPSPrinter$1
dup
aload 1
invokespecial sun.print.CUPSPrinter$1.<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-name"
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 "4001"
18: aload 3
19: invokestatic sun.print.IPPPrintService.writeIPPRequest:(Ljava/io/OutputStream;Ljava/lang/String;[Lsun/print/AttributeClass;)Z
20: ifeq 43
21: aconst_null
astore 4
start local 4 22: aload 1
invokevirtual java.net.HttpURLConnection.getInputStream:()Ljava/io/InputStream;
astore 5
start local 5 23: aload 5
24: invokestatic sun.print.IPPPrintService.readIPPResponse:(Ljava/io/InputStream;)[Ljava/util/HashMap;
astore 6
start local 6 25: aload 5
invokevirtual java.io.InputStream.close:()V
26: aload 6
ifnull 28
aload 6
arraylength
ifle 28
27: aload 6
iconst_0
aaload
astore 4
28: StackMap locals: java.net.URL java.net.HttpURLConnection java.io.OutputStream sun.print.AttributeClass[] java.util.HashMap java.io.InputStream java.util.HashMap[]
StackMap stack:
aload 4
ifnonnull 35
29: aload 2
invokevirtual java.io.OutputStream.close:()V
30: aload 1
invokevirtual java.net.HttpURLConnection.disconnect:()V
31: invokestatic sun.print.UnixPrintServiceLookup.isMac:()Z
ifeq 34
32: invokestatic sun.print.UnixPrintServiceLookup.getDefaultPrinterNameSysV:()Ljava/lang/String;
33: areturn
34: StackMap locals:
StackMap stack:
aconst_null
areturn
35: StackMap locals:
StackMap stack:
aload 4
ldc "printer-name"
invokevirtual java.util.HashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast sun.print.AttributeClass
36: astore 7
start local 7 37: aload 7
ifnull 43
38: aload 7
invokevirtual sun.print.AttributeClass.getStringValue:()Ljava/lang/String;
astore 8
start local 8 39: aload 2
invokevirtual java.io.OutputStream.close:()V
40: aload 1
invokevirtual java.net.HttpURLConnection.disconnect:()V
41: aload 8
42: areturn
end local 8 end local 7 end local 6 end local 5 end local 4 43: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.io.OutputStream.close:()V
44: aload 1
invokevirtual java.net.HttpURLConnection.disconnect:()V
end local 3 end local 2 end local 1 end local 0 45: goto 47
StackMap locals:
StackMap stack: java.lang.Exception
46: pop
47: StackMap locals:
StackMap stack:
aconst_null
areturn
LocalVariableTable:
Start End Slot Name Signature
1 45 0 url Ljava/net/URL;
3 45 1 urlConnection Ljava/net/HttpURLConnection;
6 45 2 os Ljava/io/OutputStream;
16 45 3 attCl [Lsun/print/AttributeClass;
22 43 4 defaultMap Ljava/util/HashMap;
23 43 5 is Ljava/io/InputStream;
25 43 6 responseMap [Ljava/util/HashMap;
37 43 7 attribClass Lsun/print/AttributeClass;
39 43 8 nameStr Ljava/lang/String;
Exception table:
from to target type
0 7 46 Class java.lang.Exception
8 33 46 Class java.lang.Exception
35 42 46 Class java.lang.Exception
43 45 46 Class java.lang.Exception
public static java.lang.String[] getAllPrinters();
descriptor: ()[Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, 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$2
dup
aload 1
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
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
InnerClasses:
sun.print.CUPSPrinter$1
sun.print.CUPSPrinter$2