public class jdk.incubator.jpackage.internal.IOUtils
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.incubator.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/incubator/jpackage/internal/IOUtils;
public static void deleteRecursive(java.io.File);
descriptor: (Ljava/io/File;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual java.io.File.exists:()Z
ifne 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.io.File.toPath:()Ljava/nio/file/Path;
astore 1
start local 1 3: aload 1
new jdk.incubator.jpackage.internal.IOUtils$1
dup
invokespecial jdk.incubator.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
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 path Ljava/io/File;
3 5 1 directory Ljava/nio/file/Path;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
path
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.incubator.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.incubator.jpackage.internal.IOUtils$2
dup
aload 2
aload 1
aload 0
invokespecial jdk.incubator.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.io.File, java.io.File);
descriptor: (Ljava/io/File;Ljava/io/File;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=6, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.io.File.getParentFile:()Ljava/io/File;
invokevirtual java.io.File.mkdirs:()Z
pop
1: aload 1
invokevirtual java.io.File.delete:()Z
pop
2: aload 1
invokevirtual java.io.File.createNewFile:()Z
pop
3: aconst_null
astore 2
aconst_null
astore 3
4: new java.io.FileInputStream
dup
aload 0
invokespecial java.io.FileInputStream.<init>:(Ljava/io/File;)V
invokevirtual java.io.FileInputStream.getChannel:()Ljava/nio/channels/FileChannel;
astore 4
start local 4 5: new java.io.FileOutputStream
dup
aload 1
invokespecial java.io.FileOutputStream.<init>:(Ljava/io/File;)V
invokevirtual java.io.FileOutputStream.getChannel:()Ljava/nio/channels/FileChannel;
6: astore 5
start local 5 7: aload 5
aload 4
lconst_0
aload 4
invokevirtual java.nio.channels.FileChannel.size:()J
invokevirtual java.nio.channels.FileChannel.transferFrom:(Ljava/nio/channels/ReadableByteChannel;JJ)J
pop2
8: aload 5
ifnull 11
aload 5
invokevirtual java.nio.channels.FileChannel.close:()V
goto 11
StackMap locals: java.io.File java.io.File java.lang.Throwable java.lang.Throwable java.nio.channels.FileChannel java.nio.channels.FileChannel
StackMap stack: java.lang.Throwable
9: astore 2
aload 5
ifnull 10
aload 5
invokevirtual java.nio.channels.FileChannel.close:()V
end local 5 StackMap locals:
StackMap stack:
10: aload 2
athrow
StackMap locals:
StackMap stack:
11: aload 4
ifnull 19
aload 4
invokevirtual java.nio.channels.FileChannel.close:()V
goto 19
StackMap locals:
StackMap stack: java.lang.Throwable
12: astore 3
aload 2
ifnonnull 13
aload 3
astore 2
goto 14
StackMap locals:
StackMap stack:
13: aload 2
aload 3
if_acmpeq 14
aload 2
aload 3
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
14: aload 4
ifnull 15
aload 4
invokevirtual java.nio.channels.FileChannel.close:()V
end local 4 StackMap locals:
StackMap stack:
15: aload 2
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
16: astore 3
aload 2
ifnonnull 17
aload 3
astore 2
goto 18
StackMap locals:
StackMap stack:
17: aload 2
aload 3
if_acmpeq 18
aload 2
aload 3
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
18: aload 2
athrow
19: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.io.File.canExecute:()Z
ifeq 21
20: aload 1
iconst_1
iconst_0
invokevirtual java.io.File.setExecutable:(ZZ)Z
pop
21: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.io.File.canWrite:()Z
ifne 23
22: aload 1
invokevirtual java.io.File.setReadOnly:()Z
pop
23: StackMap locals:
StackMap stack:
aload 1
iconst_1
iconst_0
invokevirtual java.io.File.setReadable:(ZZ)Z
pop
24: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 25 0 sourceFile Ljava/io/File;
0 25 1 destFile Ljava/io/File;
5 15 4 source Ljava/nio/channels/FileChannel;
7 10 5 destination Ljava/nio/channels/FileChannel;
Exception table:
from to target type
7 8 9 any
5 11 12 any
4 16 16 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
sourceFile
destFile
public static void run(java.lang.String, java.io.File);
descriptor: (Ljava/lang/String;Ljava/io/File;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ifnull 5
aload 1
invokevirtual java.io.File.exists:()Z
ifeq 5
1: new java.lang.ProcessBuilder
dup
iconst_2
anewarray java.lang.String
dup
iconst_0
aload 0
aastore
dup
iconst_1
aload 1
invokevirtual java.io.File.getName:()Ljava/lang/String;
aastore
invokespecial java.lang.ProcessBuilder.<init>:([Ljava/lang/String;)V
2: astore 2
start local 2 3: aload 2
aload 1
invokevirtual java.io.File.getParentFile:()Ljava/io/File;
invokevirtual java.lang.ProcessBuilder.directory:(Ljava/io/File;)Ljava/lang/ProcessBuilder;
astore 2
4: aload 2
invokestatic jdk.incubator.jpackage.internal.IOUtils.exec:(Ljava/lang/ProcessBuilder;)V
end local 2 5: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 launcher Ljava/lang/String;
0 6 1 paramFile Ljava/io/File;
3 5 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=4, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
aconst_null
iconst_0
invokestatic jdk.incubator.jpackage.internal.IOUtils.exec:(Ljava/lang/ProcessBuilder;ZLjava/io/PrintStream;Z)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, boolean);
descriptor: (Ljava/lang/ProcessBuilder;Z)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iconst_0
aconst_null
iload 1
invokestatic jdk.incubator.jpackage.internal.IOUtils.exec:(Ljava/lang/ProcessBuilder;ZLjava/io/PrintStream;Z)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 waitBeforeOutput Z
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
pb
waitBeforeOutput
static void exec(java.lang.ProcessBuilder, boolean, java.io.PrintStream);
descriptor: (Ljava/lang/ProcessBuilder;ZLjava/io/PrintStream;)V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iload 1
aload 2
iconst_0
invokestatic jdk.incubator.jpackage.internal.IOUtils.exec:(Ljava/lang/ProcessBuilder;ZLjava/io/PrintStream;Z)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);
descriptor: (Ljava/lang/ProcessBuilder;ZLjava/io/PrintStream;Z)V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 4
start local 4 1: aload 0
invokestatic jdk.incubator.jpackage.internal.Executor.of:(Ljava/lang/ProcessBuilder;)Ljdk/incubator/jpackage/internal/Executor;
iload 3
invokevirtual jdk.incubator.jpackage.internal.Executor.setWaitBeforeOutput:(Z)Ljdk/incubator/jpackage/internal/Executor;
aload 4
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/incubator/jpackage/internal/IOUtils.lambda$0(Ljava/util/List;Ljava/io/PrintStream;Ljava/util/stream/Stream;)V (6)
(Ljava/util/stream/Stream;)V
invokevirtual jdk.incubator.jpackage.internal.Executor.setOutputConsumer:(Ljava/util/function/Consumer;)Ljdk/incubator/jpackage/internal/Executor;
astore 5
start local 5 2: iload 1
ifeq 5
3: aload 5
invokevirtual jdk.incubator.jpackage.internal.Executor.execute:()I
pop
4: goto 6
5: StackMap locals: java.util.List jdk.incubator.jpackage.internal.Executor
StackMap stack:
aload 5
invokevirtual jdk.incubator.jpackage.internal.Executor.executeExpectSuccess:()Ljdk/incubator/jpackage/internal/Executor;
pop
6: StackMap locals:
StackMap stack:
return
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 7 0 pb Ljava/lang/ProcessBuilder;
0 7 1 testForPresenceOnly Z
0 7 2 consumer Ljava/io/PrintStream;
0 7 3 waitBeforeOutput Z
1 7 4 output Ljava/util/List<Ljava/lang/String;>;
2 7 5 exec Ljdk/incubator/jpackage/internal/Executor;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
pb
testForPresenceOnly
consumer
waitBeforeOutput
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/incubator/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 0
invokeinterface java.util.List.clear:()V
12: aload 0
aload 4
invokeinterface java.util.List.addAll:(Ljava/util/Collection;)Z
pop
13: 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 14 0 result Ljava/util/List<Ljava/lang/String;>;
0 14 1 args [Ljava/lang/String;
1 14 2 pb Ljava/lang/ProcessBuilder;
2 14 3 p Ljava/lang/Process;
3 14 4 list Ljava/util/List<Ljava/lang/String;>;
5 14 5 in Ljava/io/BufferedReader;
7 14 6 err Ljava/io/BufferedReader;
8 14 7 t Ljava/lang/Thread;
11 14 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=2, args_size=1
start local 0 0: aload 0
invokeinterface java.nio.file.Path.toFile:()Ljava/io/File;
astore 1
start local 1 1: aload 1
invokevirtual java.io.File.isDirectory:()Z
ifne 5
aload 1
invokevirtual java.io.File.mkdirs:()Z
ifne 5
2: new jdk.incubator.jpackage.internal.PackagerException
dup
ldc "error.cannot-create-output-dir"
iconst_1
anewarray java.lang.String
dup
iconst_0
3: aload 1
invokevirtual java.io.File.getAbsolutePath:()Ljava/lang/String;
4: aastore
invokespecial jdk.incubator.jpackage.internal.PackagerException.<init>:(Ljava/lang/String;[Ljava/lang/String;)V
athrow
5: StackMap locals: java.io.File
StackMap stack:
aload 1
invokevirtual java.io.File.canWrite:()Z
ifne 9
6: new jdk.incubator.jpackage.internal.PackagerException
dup
ldc "error.cannot-write-to-output-dir"
iconst_1
anewarray java.lang.String
dup
iconst_0
7: aload 1
invokevirtual java.io.File.getAbsolutePath:()Ljava/lang/String;
8: aastore
invokespecial jdk.incubator.jpackage.internal.PackagerException.<init>:(Ljava/lang/String;[Ljava/lang/String;)V
athrow
9: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 outdir Ljava/nio/file/Path;
1 10 1 file Ljava/io/File;
Exceptions:
throws jdk.incubator.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
invokeinterface java.nio.file.Path.getFileName:()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
invokeinterface java.nio.file.Path.getFileName:()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
invokeinterface java.nio.file.Path.getFileName:()Ljava/nio/file/Path;
aconst_null
invokestatic jdk.incubator.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
invokeinterface java.nio.file.Path.getFileName:()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.incubator.jpackage.internal.IOUtils$XmlConsumer);
descriptor: (Ljava/nio/file/Path;Ljdk/incubator/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
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.incubator.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.incubator.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.incubator.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.incubator.jpackage.internal.IOUtils$1 jdk.incubator.jpackage.internal.IOUtils$2 jdk.incubator.jpackage.internal.IOUtils$PrettyPrintHandler jdk.incubator.jpackage.internal.IOUtils$XmlConsumer
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
jdk.incubator.jpackage.internal.IOUtils$1
jdk.incubator.jpackage.internal.IOUtils$2
private PrettyPrintHandler = jdk.incubator.jpackage.internal.IOUtils$PrettyPrintHandler of jdk.incubator.jpackage.internal.IOUtils
public abstract XmlConsumer = jdk.incubator.jpackage.internal.IOUtils$XmlConsumer of jdk.incubator.jpackage.internal.IOUtils