public class jdk.jpackage.internal.IOUtils
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.jpackage.internal.IOUtils
super_class: java.lang.Object
{
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.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jpackage/internal/IOUtils;
public static void deleteRecursive(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.exists:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
ifne 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
new jdk.jpackage.internal.IOUtils$1
dup
invokespecial jdk.jpackage.internal.IOUtils$1.<init>:()V
invokestatic java.nio.file.Files.walkFileTree:(Ljava/nio/file/Path;Ljava/nio/file/FileVisitor;)Ljava/nio/file/Path;
pop
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 directory Ljava/nio/file/Path;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
directory
public static void copyRecursive(java.nio.file.Path, java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;Ljava/nio/file/Path;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic java.util.List.of:()Ljava/util/List;
invokestatic jdk.jpackage.internal.IOUtils.copyRecursive:(Ljava/nio/file/Path;Ljava/nio/file/Path;Ljava/util/List;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 src Ljava/nio/file/Path;
0 2 1 dest Ljava/nio/file/Path;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
src
dest
public static void copyRecursive(java.nio.file.Path, java.nio.file.Path, java.util.List<java.lang.String>);
descriptor: (Ljava/nio/file/Path;Ljava/nio/file/Path;Ljava/util/List;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
new jdk.jpackage.internal.IOUtils$2
dup
aload 2
aload 1
aload 0
invokespecial jdk.jpackage.internal.IOUtils$2.<init>:(Ljava/util/List;Ljava/nio/file/Path;Ljava/nio/file/Path;)V
invokestatic java.nio.file.Files.walkFileTree:(Ljava/nio/file/Path;Ljava/nio/file/FileVisitor;)Ljava/nio/file/Path;
pop
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 src Ljava/nio/file/Path;
0 2 1 dest Ljava/nio/file/Path;
0 2 2 excludes Ljava/util/List<Ljava/lang/String;>;
Exceptions:
throws java.io.IOException
Signature: (Ljava/nio/file/Path;Ljava/nio/file/Path;Ljava/util/List<Ljava/lang/String;>;)V
MethodParameters:
Name Flags
src
dest
excludes final
public static void copyFile(java.nio.file.Path, java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;Ljava/nio/file/Path;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic jdk.jpackage.internal.IOUtils.getParent:(Ljava/nio/file/Path;)Ljava/nio/file/Path;
iconst_0
anewarray java.nio.file.attribute.FileAttribute
invokestatic java.nio.file.Files.createDirectories:(Ljava/nio/file/Path;[Ljava/nio/file/attribute/FileAttribute;)Ljava/nio/file/Path;
pop
1: aload 0
aload 1
iconst_2
anewarray java.nio.file.CopyOption
dup
iconst_0
2: getstatic java.nio.file.StandardCopyOption.REPLACE_EXISTING:Ljava/nio/file/StandardCopyOption;
aastore
dup
iconst_1
3: getstatic java.nio.file.StandardCopyOption.COPY_ATTRIBUTES:Ljava/nio/file/StandardCopyOption;
aastore
4: invokestatic java.nio.file.Files.copy:(Ljava/nio/file/Path;Ljava/nio/file/Path;[Ljava/nio/file/CopyOption;)Ljava/nio/file/Path;
pop
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 sourceFile Ljava/nio/file/Path;
0 6 1 destFile Ljava/nio/file/Path;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
sourceFile
destFile
public static boolean exists(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ifnonnull 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.exists:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 path Ljava/nio/file/Path;
MethodParameters:
Name Flags
path
public static void run(java.lang.String, java.nio.file.Path);
descriptor: (Ljava/lang/String;Ljava/nio/file/Path;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokestatic jdk.jpackage.internal.IOUtils.exists:(Ljava/nio/file/Path;)Z
ifeq 7
1: new java.lang.ProcessBuilder
dup
iconst_2
anewarray java.lang.String
dup
iconst_0
aload 0
aastore
dup
iconst_1
2: aload 1
invokestatic jdk.jpackage.internal.IOUtils.getFileName:(Ljava/nio/file/Path;)Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
3: aastore
invokespecial java.lang.ProcessBuilder.<init>:([Ljava/lang/String;)V
4: astore 2
start local 2 5: aload 2
aload 1
invokestatic jdk.jpackage.internal.IOUtils.getParent:(Ljava/nio/file/Path;)Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toFile:()Ljava/io/File;
invokevirtual java.lang.ProcessBuilder.directory:(Ljava/io/File;)Ljava/lang/ProcessBuilder;
astore 2
6: aload 2
invokestatic jdk.jpackage.internal.IOUtils.exec:(Ljava/lang/ProcessBuilder;)V
end local 2 7: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 launcher Ljava/lang/String;
0 8 1 paramFile Ljava/nio/file/Path;
5 7 2 pb Ljava/lang/ProcessBuilder;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
launcher
paramFile
public static void exec(java.lang.ProcessBuilder);
descriptor: (Ljava/lang/ProcessBuilder;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
aconst_null
iconst_0
ldc -1
invokestatic jdk.jpackage.internal.IOUtils.exec:(Ljava/lang/ProcessBuilder;ZLjava/io/PrintStream;ZJ)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 pb Ljava/lang/ProcessBuilder;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
pb
public static void exec(java.lang.ProcessBuilder, long);
descriptor: (Ljava/lang/ProcessBuilder;J)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: aload 0
iconst_0
aconst_null
iconst_0
lload 1
invokestatic jdk.jpackage.internal.IOUtils.exec:(Ljava/lang/ProcessBuilder;ZLjava/io/PrintStream;ZJ)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 pb Ljava/lang/ProcessBuilder;
0 2 1 timeout J
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
pb
timeout
public static void exec(java.lang.ProcessBuilder, boolean);
descriptor: (Ljava/lang/ProcessBuilder;Z)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iconst_0
aconst_null
iload 1
ldc -1
invokestatic jdk.jpackage.internal.IOUtils.exec:(Ljava/lang/ProcessBuilder;ZLjava/io/PrintStream;ZJ)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 pb Ljava/lang/ProcessBuilder;
0 2 1 writeOutputToFile Z
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
pb
writeOutputToFile
static void exec(java.lang.ProcessBuilder, boolean, java.io.PrintStream);
descriptor: (Ljava/lang/ProcessBuilder;ZLjava/io/PrintStream;)V
flags: (0x0008) ACC_STATIC
Code:
stack=6, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iload 1
aload 2
iconst_0
ldc -1
invokestatic jdk.jpackage.internal.IOUtils.exec:(Ljava/lang/ProcessBuilder;ZLjava/io/PrintStream;ZJ)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 pb Ljava/lang/ProcessBuilder;
0 2 1 testForPresenceOnly Z
0 2 2 consumer Ljava/io/PrintStream;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
pb
testForPresenceOnly
consumer
static void exec(java.lang.ProcessBuilder, boolean, java.io.PrintStream, boolean, long);
descriptor: (Ljava/lang/ProcessBuilder;ZLjava/io/PrintStream;ZJ)V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=8, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 6
start local 6 1: aload 0
invokestatic jdk.jpackage.internal.Executor.of:(Ljava/lang/ProcessBuilder;)Ljdk/jpackage/internal/Executor;
iload 3
invokevirtual jdk.jpackage.internal.Executor.setWriteOutputToFile:(Z)Ljdk/jpackage/internal/Executor;
2: lload 4
invokevirtual jdk.jpackage.internal.Executor.setTimeout:(J)Ljdk/jpackage/internal/Executor;
aload 6
aload 2
invokedynamic accept(Ljava/util/List;Ljava/io/PrintStream;)Ljava/util/function/Consumer;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)V
jdk/jpackage/internal/IOUtils.lambda$0(Ljava/util/List;Ljava/io/PrintStream;Ljava/util/stream/Stream;)V (6)
(Ljava/util/stream/Stream;)V
invokevirtual jdk.jpackage.internal.Executor.setOutputConsumer:(Ljava/util/function/Consumer;)Ljdk/jpackage/internal/Executor;
3: astore 7
start local 7 4: iload 1
ifeq 7
5: aload 7
invokevirtual jdk.jpackage.internal.Executor.execute:()I
pop
6: goto 8
7: StackMap locals: java.util.List jdk.jpackage.internal.Executor
StackMap stack:
aload 7
invokevirtual jdk.jpackage.internal.Executor.executeExpectSuccess:()Ljdk/jpackage/internal/Executor;
pop
8: StackMap locals:
StackMap stack:
return
end local 7 end local 6 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 pb Ljava/lang/ProcessBuilder;
0 9 1 testForPresenceOnly Z
0 9 2 consumer Ljava/io/PrintStream;
0 9 3 writeOutputToFile Z
0 9 4 timeout J
1 9 6 output Ljava/util/List<Ljava/lang/String;>;
4 9 7 exec Ljdk/jpackage/internal/Executor;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
pb
testForPresenceOnly
consumer
writeOutputToFile
timeout
public static int getProcessOutput(java.util.List<java.lang.String>, java.lang.String[]);
descriptor: (Ljava/util/List;[Ljava/lang/String;)I
flags: (0x0089) ACC_PUBLIC, ACC_STATIC, ACC_VARARGS
Code:
stack=5, locals=9, args_size=2
start local 0 start local 1 0: new java.lang.ProcessBuilder
dup
aload 1
invokespecial java.lang.ProcessBuilder.<init>:([Ljava/lang/String;)V
astore 2
start local 2 1: aload 2
invokevirtual java.lang.ProcessBuilder.start:()Ljava/lang/Process;
astore 3
start local 3 2: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 4
start local 4 3: new java.io.BufferedReader
dup
new java.io.InputStreamReader
dup
aload 3
invokevirtual java.lang.Process.getInputStream:()Ljava/io/InputStream;
invokespecial java.io.InputStreamReader.<init>:(Ljava/io/InputStream;)V
invokespecial java.io.BufferedReader.<init>:(Ljava/io/Reader;)V
4: astore 5
start local 5 5: new java.io.BufferedReader
dup
new java.io.InputStreamReader
dup
aload 3
invokevirtual java.lang.Process.getErrorStream:()Ljava/io/InputStream;
invokespecial java.io.InputStreamReader.<init>:(Ljava/io/InputStream;)V
invokespecial java.io.BufferedReader.<init>:(Ljava/io/Reader;)V
6: astore 6
start local 6 7: new java.lang.Thread
dup
aload 5
aload 4
aload 6
invokedynamic run(Ljava/io/BufferedReader;Ljava/util/List;Ljava/io/BufferedReader;)Ljava/lang/Runnable;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()V
jdk/jpackage/internal/IOUtils.lambda$3(Ljava/io/BufferedReader;Ljava/util/List;Ljava/io/BufferedReader;)V (6)
()V
invokespecial java.lang.Thread.<init>:(Ljava/lang/Runnable;)V
astore 7
start local 7 8: aload 7
iconst_1
invokevirtual java.lang.Thread.setDaemon:(Z)V
9: aload 7
invokevirtual java.lang.Thread.start:()V
10: aload 3
invokevirtual java.lang.Process.waitFor:()I
istore 8
start local 8 11: aload 2
invokevirtual java.lang.ProcessBuilder.command:()Ljava/util/List;
aload 4
iload 8
invokestatic jdk.jpackage.internal.Log.verbose:(Ljava/util/List;Ljava/util/List;I)V
12: aload 0
invokeinterface java.util.List.clear:()V
13: aload 0
aload 4
invokeinterface java.util.List.addAll:(Ljava/util/Collection;)Z
pop
14: iload 8
ireturn
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 15 0 result Ljava/util/List<Ljava/lang/String;>;
0 15 1 args [Ljava/lang/String;
1 15 2 pb Ljava/lang/ProcessBuilder;
2 15 3 p Ljava/lang/Process;
3 15 4 list Ljava/util/List<Ljava/lang/String;>;
5 15 5 in Ljava/io/BufferedReader;
7 15 6 err Ljava/io/BufferedReader;
8 15 7 t Ljava/lang/Thread;
11 15 8 ret I
Exceptions:
throws java.io.IOException, java.lang.InterruptedException
Signature: (Ljava/util/List<Ljava/lang/String;>;[Ljava/lang/String;)I
MethodParameters:
Name Flags
result
args
static void writableOutputDir(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)V
flags: (0x0008) ACC_STATIC
Code:
stack=7, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.isDirectory:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
ifne 7
1: aload 0
iconst_0
anewarray java.nio.file.attribute.FileAttribute
invokestatic java.nio.file.Files.createDirectories:(Ljava/nio/file/Path;[Ljava/nio/file/attribute/FileAttribute;)Ljava/nio/file/Path;
pop
2: goto 7
StackMap locals:
StackMap stack: java.io.IOException
3: pop
4: new jdk.jpackage.internal.PackagerException
dup
ldc "error.cannot-create-output-dir"
iconst_1
anewarray java.lang.String
dup
iconst_0
5: aload 0
invokeinterface java.nio.file.Path.toAbsolutePath:()Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
6: aastore
invokespecial jdk.jpackage.internal.PackagerException.<init>:(Ljava/lang/String;[Ljava/lang/String;)V
athrow
7: StackMap locals:
StackMap stack:
aload 0
invokestatic java.nio.file.Files.isWritable:(Ljava/nio/file/Path;)Z
ifne 11
8: new jdk.jpackage.internal.PackagerException
dup
ldc "error.cannot-write-to-output-dir"
iconst_1
anewarray java.lang.String
dup
iconst_0
9: aload 0
invokeinterface java.nio.file.Path.toAbsolutePath:()Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
10: aastore
invokespecial jdk.jpackage.internal.PackagerException.<init>:(Ljava/lang/String;[Ljava/lang/String;)V
athrow
11: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 outdir Ljava/nio/file/Path;
Exception table:
from to target type
1 2 3 Class java.io.IOException
Exceptions:
throws jdk.jpackage.internal.PackagerException
MethodParameters:
Name Flags
outdir
public static java.nio.file.Path replaceSuffix(java.nio.file.Path, java.lang.String);
descriptor: (Ljava/nio/file/Path;Ljava/lang/String;)Ljava/nio/file/Path;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokeinterface java.nio.file.Path.getParent:()Ljava/nio/file/Path;
astore 2
start local 2 1: new java.lang.StringBuilder
dup
aload 0
invokestatic jdk.jpackage.internal.IOUtils.getFileName:(Ljava/nio/file/Path;)Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
ldc "\\.[^.]*$"
ldc ""
invokevirtual java.lang.String.replaceAll:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
2: aload 1
invokestatic java.util.Optional.ofNullable:(Ljava/lang/Object;)Ljava/util/Optional;
ldc ""
invokevirtual java.util.Optional.orElse:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
3: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 3
start local 3 4: aload 2
ifnull 5
aload 2
aload 3
invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
goto 6
StackMap locals: java.nio.file.Path java.lang.String
StackMap stack:
5: aload 3
iconst_0
anewarray java.lang.String
invokestatic java.nio.file.Path.of:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
StackMap locals:
StackMap stack: java.nio.file.Path
6: areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 path Ljava/nio/file/Path;
0 7 1 suffix Ljava/lang/String;
1 7 2 parent Ljava/nio/file/Path;
4 7 3 filename Ljava/lang/String;
MethodParameters:
Name Flags
path
suffix
public static java.nio.file.Path addSuffix(java.nio.file.Path, java.lang.String);
descriptor: (Ljava/nio/file/Path;Ljava/lang/String;)Ljava/nio/file/Path;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokeinterface java.nio.file.Path.getParent:()Ljava/nio/file/Path;
astore 2
start local 2 1: new java.lang.StringBuilder
dup
aload 0
invokestatic jdk.jpackage.internal.IOUtils.getFileName:(Ljava/nio/file/Path;)Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 3
start local 3 2: aload 2
ifnull 3
aload 2
aload 3
invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
goto 4
StackMap locals: java.nio.file.Path java.lang.String
StackMap stack:
3: aload 3
iconst_0
anewarray java.lang.String
invokestatic java.nio.file.Path.of:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
StackMap locals:
StackMap stack: java.nio.file.Path
4: areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 path Ljava/nio/file/Path;
0 5 1 suffix Ljava/lang/String;
1 5 2 parent Ljava/nio/file/Path;
2 5 3 filename Ljava/lang/String;
MethodParameters:
Name Flags
path
suffix
public static java.lang.String getSuffix(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
invokestatic jdk.jpackage.internal.IOUtils.getFileName:(Ljava/nio/file/Path;)Ljava/nio/file/Path;
aconst_null
invokestatic jdk.jpackage.internal.IOUtils.replaceSuffix:(Ljava/nio/file/Path;Ljava/lang/String;)Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
astore 1
start local 1 1: aload 0
invokestatic jdk.jpackage.internal.IOUtils.getFileName:(Ljava/nio/file/Path;)Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
aload 1
invokevirtual java.lang.String.length:()I
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 path Ljava/nio/file/Path;
1 2 1 filename Ljava/lang/String;
MethodParameters:
Name Flags
path
public static void createXml(java.nio.file.Path, jdk.jpackage.internal.IOUtils$XmlConsumer);
descriptor: (Ljava/nio/file/Path;Ljdk/jpackage/internal/IOUtils$XmlConsumer;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
0: new java.lang.Error
dup
ldc "Unresolved compilation problems: \n\tXMLOutputFactory cannot be resolved to a type\n\tXMLOutputFactory cannot be resolved\n\tXMLStreamWriter cannot be resolved to a type\n\tXMLStreamWriter cannot be resolved to a type\n\tXMLStreamWriter cannot be resolved to a type\n\tXMLStreamWriter cannot be resolved to a type\n\tXMLStreamException cannot be resolved to a type\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
dstFile
xmlConsumer
public static java.nio.file.Path getParent(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)Ljava/nio/file/Path;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
invokeinterface java.nio.file.Path.getParent:()Ljava/nio/file/Path;
astore 1
start local 1 1: aload 1
ifnonnull 6
2: new java.lang.IllegalArgumentException
dup
aload 0
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
3: astore 2
start local 2 4: aload 2
invokestatic jdk.jpackage.internal.Log.verbose:(Ljava/lang/Throwable;)V
5: aload 2
athrow
end local 2 6: StackMap locals: java.nio.file.Path
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 p Ljava/nio/file/Path;
1 7 1 parent Ljava/nio/file/Path;
4 6 2 iae Ljava/lang/IllegalArgumentException;
MethodParameters:
Name Flags
p
public static java.nio.file.Path getFileName(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)Ljava/nio/file/Path;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
invokeinterface java.nio.file.Path.getFileName:()Ljava/nio/file/Path;
astore 1
start local 1 1: aload 1
ifnonnull 6
2: new java.lang.IllegalArgumentException
dup
aload 0
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
3: astore 2
start local 2 4: aload 2
invokestatic jdk.jpackage.internal.Log.verbose:(Ljava/lang/Throwable;)V
5: aload 2
athrow
end local 2 6: StackMap locals: java.nio.file.Path
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 p Ljava/nio/file/Path;
1 7 1 filename Ljava/nio/file/Path;
4 6 2 iae Ljava/lang/IllegalArgumentException;
MethodParameters:
Name Flags
p
private static void lambda$0(java.util.List, java.io.PrintStream, java.util.stream.Stream);
descriptor: (Ljava/util/List;Ljava/io/PrintStream;Ljava/util/stream/Stream;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
start local 2 0: aload 2
aload 0
dup
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
pop
invokedynamic accept(Ljava/util/List;)Ljava/util/function/Consumer;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)V
java/util/List.add(Ljava/lang/Object;)Z (9 itf)
(Ljava/lang/String;)V
invokeinterface java.util.stream.Stream.forEach:(Ljava/util/function/Consumer;)V
1: aload 1
ifnull 3
2: aload 0
aload 1
dup
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
pop
invokedynamic accept(Ljava/io/PrintStream;)Ljava/util/function/Consumer;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)V
java/io/PrintStream.println(Ljava/lang/String;)V (5)
(Ljava/lang/String;)V
invokeinterface java.util.List.forEach:(Ljava/util/function/Consumer;)V
3: StackMap locals:
StackMap stack:
return
end local 2 LocalVariableTable:
Start End Slot Name Signature
0 4 2 lines Ljava/util/stream/Stream<Ljava/lang/String;>;
private static void lambda$3(java.io.BufferedReader, java.util.List, java.io.BufferedReader);
descriptor: (Ljava/io/BufferedReader;Ljava/util/List;Ljava/io/BufferedReader;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=4, args_size=3
0: goto 2
start local 3 1: StackMap locals: java.lang.String
StackMap stack:
aload 1
aload 3
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 3 2: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.io.BufferedReader.readLine:()Ljava/lang/String;
dup
astore 3
start local 3 3: ifnonnull 1
end local 3 4: goto 9
StackMap locals:
StackMap stack: java.io.IOException
5: astore 3
start local 3 6: aload 3
invokestatic jdk.jpackage.internal.Log.verbose:(Ljava/lang/Throwable;)V
end local 3 7: goto 9
start local 3 8: StackMap locals: java.lang.String
StackMap stack:
aload 3
invokestatic jdk.jpackage.internal.Log.error:(Ljava/lang/String;)V
end local 3 9: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.io.BufferedReader.readLine:()Ljava/lang/String;
dup
astore 3
start local 3 10: ifnonnull 8
end local 3 11: goto 14
StackMap locals:
StackMap stack: java.io.IOException
12: astore 3
start local 3 13: aload 3
invokestatic jdk.jpackage.internal.Log.verbose:(Ljava/lang/Throwable;)V
end local 3 14: StackMap locals:
StackMap stack:
return
LocalVariableTable:
Start End Slot Name Signature
1 2 3 line Ljava/lang/String;
3 4 3 line Ljava/lang/String;
6 7 3 ioe Ljava/io/IOException;
8 9 3 line Ljava/lang/String;
10 11 3 line Ljava/lang/String;
13 14 3 ioe Ljava/io/IOException;
Exception table:
from to target type
0 4 5 Class java.io.IOException
7 11 12 Class java.io.IOException
}
SourceFile: "IOUtils.java"
NestMembers:
jdk.jpackage.internal.IOUtils$1 jdk.jpackage.internal.IOUtils$2 jdk.jpackage.internal.IOUtils$PrettyPrintHandler jdk.jpackage.internal.IOUtils$XmlConsumer
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
jdk.jpackage.internal.IOUtils$1
jdk.jpackage.internal.IOUtils$2
private PrettyPrintHandler = jdk.jpackage.internal.IOUtils$PrettyPrintHandler of jdk.jpackage.internal.IOUtils
public abstract XmlConsumer = jdk.jpackage.internal.IOUtils$XmlConsumer of jdk.jpackage.internal.IOUtils