class jdk.tools.jmod.JmodOutputStream extends java.io.OutputStream implements java.lang.AutoCloseable
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.tools.jmod.JmodOutputStream
super_class: java.io.OutputStream
{
private final java.util.zip.ZipOutputStream zos;
descriptor: Ljava/util/zip/ZipOutputStream;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static jdk.tools.jmod.JmodOutputStream newOutputStream(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)Ljdk/tools/jmod/JmodOutputStream;
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
iconst_0
anewarray java.nio.file.OpenOption
invokestatic java.nio.file.Files.newOutputStream:(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/io/OutputStream;
astore 1
start local 1 1: new java.io.BufferedOutputStream
dup
aload 1
invokespecial java.io.BufferedOutputStream.<init>:(Ljava/io/OutputStream;)V
astore 2
start local 2 2: new jdk.tools.jmod.JmodOutputStream
dup
aload 2
invokespecial jdk.tools.jmod.JmodOutputStream.<init>:(Ljava/io/OutputStream;)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 file Ljava/nio/file/Path;
1 3 1 out Ljava/io/OutputStream;
2 3 2 bos Ljava/io/BufferedOutputStream;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
file
private void <init>(java.io.OutputStream);
descriptor: (Ljava/io/OutputStream;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.io.OutputStream.<init>:()V
1: aload 0
new java.util.zip.ZipOutputStream
dup
aload 1
invokespecial java.util.zip.ZipOutputStream.<init>:(Ljava/io/OutputStream;)V
putfield jdk.tools.jmod.JmodOutputStream.zos:Ljava/util/zip/ZipOutputStream;
2: aload 1
invokestatic jdk.internal.jmod.JmodFile.writeMagicNumber:(Ljava/io/OutputStream;)V
3: goto 6
StackMap locals: jdk.tools.jmod.JmodOutputStream java.io.OutputStream
StackMap stack: java.io.IOException
4: astore 2
start local 2 5: new java.io.UncheckedIOException
dup
aload 2
invokespecial java.io.UncheckedIOException.<init>:(Ljava/io/IOException;)V
athrow
end local 2 6: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/tools/jmod/JmodOutputStream;
0 7 1 out Ljava/io/OutputStream;
5 6 2 e Ljava/io/IOException;
Exception table:
from to target type
2 3 4 Class java.io.IOException
MethodParameters:
Name Flags
out
public void writeEntry(java.io.InputStream, jdk.internal.jmod.JmodFile$Section, java.lang.String);
descriptor: (Ljava/io/InputStream;Ljdk/internal/jmod/JmodFile$Section;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 2
aload 3
invokevirtual jdk.tools.jmod.JmodOutputStream.newEntry:(Ljdk/internal/jmod/JmodFile$Section;Ljava/lang/String;)Ljava/util/zip/ZipEntry;
astore 4
start local 4 1: aload 0
getfield jdk.tools.jmod.JmodOutputStream.zos:Ljava/util/zip/ZipOutputStream;
aload 4
invokevirtual java.util.zip.ZipOutputStream.putNextEntry:(Ljava/util/zip/ZipEntry;)V
2: aload 1
aload 0
getfield jdk.tools.jmod.JmodOutputStream.zos:Ljava/util/zip/ZipOutputStream;
invokevirtual java.io.InputStream.transferTo:(Ljava/io/OutputStream;)J
pop2
3: aload 0
getfield jdk.tools.jmod.JmodOutputStream.zos:Ljava/util/zip/ZipOutputStream;
invokevirtual java.util.zip.ZipOutputStream.closeEntry:()V
4: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/tools/jmod/JmodOutputStream;
0 5 1 in Ljava/io/InputStream;
0 5 2 section Ljdk/internal/jmod/JmodFile$Section;
0 5 3 name Ljava/lang/String;
1 5 4 ze Ljava/util/zip/ZipEntry;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
in
section
name
public void writeEntry(byte[], jdk.internal.jmod.JmodFile$Section, java.lang.String);
descriptor: ([BLjdk/internal/jmod/JmodFile$Section;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 2
aload 3
invokevirtual jdk.tools.jmod.JmodOutputStream.newEntry:(Ljdk/internal/jmod/JmodFile$Section;Ljava/lang/String;)Ljava/util/zip/ZipEntry;
astore 4
start local 4 1: aload 0
getfield jdk.tools.jmod.JmodOutputStream.zos:Ljava/util/zip/ZipOutputStream;
aload 4
invokevirtual java.util.zip.ZipOutputStream.putNextEntry:(Ljava/util/zip/ZipEntry;)V
2: aload 0
getfield jdk.tools.jmod.JmodOutputStream.zos:Ljava/util/zip/ZipOutputStream;
aload 1
invokevirtual java.util.zip.ZipOutputStream.write:([B)V
3: aload 0
getfield jdk.tools.jmod.JmodOutputStream.zos:Ljava/util/zip/ZipOutputStream;
invokevirtual java.util.zip.ZipOutputStream.closeEntry:()V
4: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/tools/jmod/JmodOutputStream;
0 5 1 bytes [B
0 5 2 section Ljdk/internal/jmod/JmodFile$Section;
0 5 3 path Ljava/lang/String;
1 5 4 ze Ljava/util/zip/ZipEntry;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
bytes
section
path
public void writeEntry(java.io.InputStream, jdk.internal.jmod.JmodFile$Entry);
descriptor: (Ljava/io/InputStream;Ljdk/internal/jmod/JmodFile$Entry;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield jdk.tools.jmod.JmodOutputStream.zos:Ljava/util/zip/ZipOutputStream;
aload 2
invokevirtual jdk.internal.jmod.JmodFile$Entry.zipEntry:()Ljava/util/zip/ZipEntry;
invokevirtual java.util.zip.ZipOutputStream.putNextEntry:(Ljava/util/zip/ZipEntry;)V
1: aload 0
getfield jdk.tools.jmod.JmodOutputStream.zos:Ljava/util/zip/ZipOutputStream;
aload 1
invokevirtual java.io.InputStream.readAllBytes:()[B
invokevirtual java.util.zip.ZipOutputStream.write:([B)V
2: aload 0
getfield jdk.tools.jmod.JmodOutputStream.zos:Ljava/util/zip/ZipOutputStream;
invokevirtual java.util.zip.ZipOutputStream.closeEntry:()V
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/tools/jmod/JmodOutputStream;
0 4 1 in Ljava/io/InputStream;
0 4 2 e Ljdk/internal/jmod/JmodFile$Entry;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
in
e
private java.util.zip.ZipEntry newEntry(jdk.internal.jmod.JmodFile$Section, java.lang.String);
descriptor: (Ljdk/internal/jmod/JmodFile$Section;Ljava/lang/String;)Ljava/util/zip/ZipEntry;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual jdk.internal.jmod.JmodFile$Section.jmodDir:()Ljava/lang/String;
astore 3
start local 3 1: aload 3
iconst_1
anewarray java.lang.String
dup
iconst_0
aload 2
aastore
invokestatic java.nio.file.Paths.get:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
2: getstatic java.io.File.separatorChar:C
bipush 47
invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
3: astore 4
start local 4 4: new java.util.zip.ZipEntry
dup
aload 4
invokespecial java.util.zip.ZipEntry.<init>:(Ljava/lang/String;)V
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/tools/jmod/JmodOutputStream;
0 5 1 section Ljdk/internal/jmod/JmodFile$Section;
0 5 2 path Ljava/lang/String;
1 5 3 prefix Ljava/lang/String;
4 5 4 name Ljava/lang/String;
MethodParameters:
Name Flags
section
path
public void write(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.tools.jmod.JmodOutputStream.zos:Ljava/util/zip/ZipOutputStream;
iload 1
invokevirtual java.util.zip.ZipOutputStream.write:(I)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/tools/jmod/JmodOutputStream;
0 2 1 b I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.tools.jmod.JmodOutputStream.zos:Ljava/util/zip/ZipOutputStream;
invokevirtual java.util.zip.ZipOutputStream.close:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/tools/jmod/JmodOutputStream;
Exceptions:
throws java.io.IOException
}
SourceFile: "JmodOutputStream.java"
InnerClasses:
public Entry = jdk.internal.jmod.JmodFile$Entry of jdk.internal.jmod.JmodFile
public final Section = jdk.internal.jmod.JmodFile$Section of jdk.internal.jmod.JmodFile