class sun.print.PrintServiceLookupProvider$1 implements java.security.PrivilegedExceptionAction<java.util.ArrayList<java.lang.String>>
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.print.PrintServiceLookupProvider$1
super_class: java.lang.Object
{
private final java.lang.String[] val$cmd;
descriptor: [Ljava/lang/String;
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
void <init>(java.lang.String[]);
descriptor: ([Ljava/lang/String;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 0: aload 0
aload 1
putfield sun.print.PrintServiceLookupProvider$1.val$cmd:[Ljava/lang/String;
aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/print/PrintServiceLookupProvider$1;
MethodParameters:
Name Flags
val$cmd final
public java.util.ArrayList<java.lang.String> run();
descriptor: ()Ljava/util/ArrayList;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=10, args_size=1
start local 0 0: aconst_null
astore 2
start local 2 1: ldc "prn"
ldc "xc"
iconst_0
anewarray java.nio.file.attribute.FileAttribute
invokestatic java.nio.file.Files.createTempFile:(Ljava/lang/String;Ljava/lang/String;[Ljava/nio/file/attribute/FileAttribute;)Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toFile:()Ljava/io/File;
astore 3
start local 3 2: aload 0
getfield sun.print.PrintServiceLookupProvider$1.val$cmd:[Ljava/lang/String;
iconst_2
new java.lang.StringBuilder
dup
aload 0
getfield sun.print.PrintServiceLookupProvider$1.val$cmd:[Ljava/lang/String;
iconst_2
aaload
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ">"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 3
invokevirtual java.io.File.getAbsolutePath:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aastore
3: invokestatic java.lang.Runtime.getRuntime:()Ljava/lang/Runtime;
aload 0
getfield sun.print.PrintServiceLookupProvider$1.val$cmd:[Ljava/lang/String;
invokevirtual java.lang.Runtime.exec:([Ljava/lang/String;)Ljava/lang/Process;
astore 1
start local 1 4: iconst_0
istore 4
start local 4 5: goto 10
6: StackMap locals: sun.print.PrintServiceLookupProvider$1 java.lang.Process java.io.BufferedReader java.io.File int
StackMap stack:
aload 1
invokevirtual java.lang.Process.waitFor:()I
pop
7: iconst_1
istore 4
8: goto 10
StackMap locals:
StackMap stack: java.lang.InterruptedException
9: pop
10: StackMap locals:
StackMap stack:
iload 4
ifeq 6
11: aload 1
invokevirtual java.lang.Process.exitValue:()I
ifne 35
12: new java.io.FileReader
dup
aload 3
invokespecial java.io.FileReader.<init>:(Ljava/io/File;)V
astore 5
start local 5 13: new java.io.BufferedReader
dup
aload 5
invokespecial java.io.BufferedReader.<init>:(Ljava/io/Reader;)V
astore 2
14: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 7
start local 7 15: goto 17
start local 6 16: StackMap locals: java.io.FileReader java.lang.String java.util.ArrayList
StackMap stack:
aload 7
aload 6
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
end local 6 17: StackMap locals: sun.print.PrintServiceLookupProvider$1 java.lang.Process java.io.BufferedReader java.io.File int java.io.FileReader top java.util.ArrayList
StackMap stack:
aload 2
invokevirtual java.io.BufferedReader.readLine:()Ljava/lang/String;
dup
astore 6
start local 6 18: ifnonnull 16
19: aload 7
astore 9
20: aload 3
invokevirtual java.io.File.delete:()Z
pop
21: aload 2
ifnull 23
22: aload 2
invokevirtual java.io.BufferedReader.close:()V
23: StackMap locals: sun.print.PrintServiceLookupProvider$1 java.lang.Process java.io.BufferedReader java.io.File int java.io.FileReader java.lang.String java.util.ArrayList top java.util.ArrayList
StackMap stack:
aload 1
invokevirtual java.lang.Process.getInputStream:()Ljava/io/InputStream;
invokevirtual java.io.InputStream.close:()V
24: aload 1
invokevirtual java.lang.Process.getErrorStream:()Ljava/io/InputStream;
invokevirtual java.io.InputStream.close:()V
25: aload 1
invokevirtual java.lang.Process.getOutputStream:()Ljava/io/OutputStream;
invokevirtual java.io.OutputStream.close:()V
26: aload 9
areturn
end local 7 end local 6 end local 5 end local 4 27: StackMap locals: sun.print.PrintServiceLookupProvider$1 java.lang.Process java.io.BufferedReader java.io.File
StackMap stack: java.lang.Throwable
astore 8
28: aload 3
invokevirtual java.io.File.delete:()Z
pop
29: aload 2
ifnull 31
30: aload 2
invokevirtual java.io.BufferedReader.close:()V
31: StackMap locals: sun.print.PrintServiceLookupProvider$1 java.lang.Process java.io.BufferedReader java.io.File top top top top java.lang.Throwable
StackMap stack:
aload 1
invokevirtual java.lang.Process.getInputStream:()Ljava/io/InputStream;
invokevirtual java.io.InputStream.close:()V
32: aload 1
invokevirtual java.lang.Process.getErrorStream:()Ljava/io/InputStream;
invokevirtual java.io.InputStream.close:()V
33: aload 1
invokevirtual java.lang.Process.getOutputStream:()Ljava/io/OutputStream;
invokevirtual java.io.OutputStream.close:()V
34: aload 8
athrow
35: StackMap locals: sun.print.PrintServiceLookupProvider$1 java.lang.Process java.io.BufferedReader java.io.File
StackMap stack:
aload 3
invokevirtual java.io.File.delete:()Z
pop
36: aload 2
ifnull 38
37: aload 2
invokevirtual java.io.BufferedReader.close:()V
38: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.lang.Process.getInputStream:()Ljava/io/InputStream;
invokevirtual java.io.InputStream.close:()V
39: aload 1
invokevirtual java.lang.Process.getErrorStream:()Ljava/io/InputStream;
invokevirtual java.io.InputStream.close:()V
40: aload 1
invokevirtual java.lang.Process.getOutputStream:()Ljava/io/OutputStream;
invokevirtual java.io.OutputStream.close:()V
41: aconst_null
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 42 0 this Lsun/print/PrintServiceLookupProvider$1;
4 42 1 proc Ljava/lang/Process;
1 42 2 bufferedReader Ljava/io/BufferedReader;
2 42 3 f Ljava/io/File;
5 27 4 done Z
13 27 5 reader Ljava/io/FileReader;
16 17 6 line Ljava/lang/String;
18 27 6 line Ljava/lang/String;
15 27 7 results Ljava/util/ArrayList<Ljava/lang/String;>;
Exception table:
from to target type
6 8 9 Class java.lang.InterruptedException
4 20 27 any
Exceptions:
throws java.io.IOException
Signature: ()Ljava/util/ArrayList<Ljava/lang/String;>;
public java.lang.Object run();
descriptor: ()Ljava/lang/Object;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual sun.print.PrintServiceLookupProvider$1.run:()Ljava/util/ArrayList;
areturn
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws java.lang.Exception
}
Signature: Ljava/lang/Object;Ljava/security/PrivilegedExceptionAction<Ljava/util/ArrayList<Ljava/lang/String;>;>;
SourceFile: "PrintServiceLookupProvider.java"
EnclosingMethod: sun.print.PrintServiceLookupProvider.execCmd:(Ljava/lang/String;)[Ljava/lang/String;
NestHost: sun.print.PrintServiceLookupProvider
InnerClasses:
sun.print.PrintServiceLookupProvider$1