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.Map<jdk.internal.jmod.JmodFile$Section, java.util.Set<java.lang.String>> entries;
    descriptor: Ljava/util/Map;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL
    Signature: Ljava/util/Map<Ljdk/internal/jmod/JmodFile$Section;Ljava/util/Set<Ljava/lang/String;>;>;

  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 // java.nio.file.Path file
         0: .line 58
            aload 0 /* file */
            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 /* out */
        start local 1 // java.io.OutputStream out
         1: .line 59
            new java.io.BufferedOutputStream
            dup
            aload 1 /* out */
            invokespecial java.io.BufferedOutputStream.<init>:(Ljava/io/OutputStream;)V
            astore 2 /* bos */
        start local 2 // java.io.BufferedOutputStream bos
         2: .line 60
            new jdk.tools.jmod.JmodOutputStream
            dup
            aload 2 /* bos */
            invokespecial jdk.tools.jmod.JmodOutputStream.<init>:(Ljava/io/OutputStream;)V
            areturn
        end local 2 // java.io.BufferedOutputStream bos
        end local 1 // java.io.OutputStream out
        end local 0 // java.nio.file.Path file
      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 // jdk.tools.jmod.JmodOutputStream this
        start local 1 // java.io.OutputStream out
         0: .line 64
            aload 0 /* this */
            invokespecial java.io.OutputStream.<init>:()V
         1: .line 51
            aload 0 /* this */
            new java.util.HashMap
            dup
            invokespecial java.util.HashMap.<init>:()V
            putfield jdk.tools.jmod.JmodOutputStream.entries:Ljava/util/Map;
         2: .line 65
            aload 0 /* this */
            new java.util.zip.ZipOutputStream
            dup
            aload 1 /* out */
            invokespecial java.util.zip.ZipOutputStream.<init>:(Ljava/io/OutputStream;)V
            putfield jdk.tools.jmod.JmodOutputStream.zos:Ljava/util/zip/ZipOutputStream;
         3: .line 67
            aload 1 /* out */
            invokestatic jdk.internal.jmod.JmodFile.writeMagicNumber:(Ljava/io/OutputStream;)V
         4: .line 68
            goto 7
      StackMap locals: jdk.tools.jmod.JmodOutputStream java.io.OutputStream
      StackMap stack: java.io.IOException
         5: astore 2 /* e */
        start local 2 // java.io.IOException e
         6: .line 69
            new java.io.UncheckedIOException
            dup
            aload 2 /* e */
            invokespecial java.io.UncheckedIOException.<init>:(Ljava/io/IOException;)V
            athrow
        end local 2 // java.io.IOException e
         7: .line 71
      StackMap locals:
      StackMap stack:
            return
        end local 1 // java.io.OutputStream out
        end local 0 // jdk.tools.jmod.JmodOutputStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    8     0  this  Ljdk/tools/jmod/JmodOutputStream;
            0    8     1   out  Ljava/io/OutputStream;
            6    7     2     e  Ljava/io/IOException;
      Exception table:
        from    to  target  type
           3     4       5  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 // jdk.tools.jmod.JmodOutputStream this
        start local 1 // java.io.InputStream in
        start local 2 // jdk.internal.jmod.JmodFile$Section section
        start local 3 // java.lang.String name
         0: .line 79
            aload 0 /* this */
            aload 2 /* section */
            aload 3 /* name */
            invokevirtual jdk.tools.jmod.JmodOutputStream.newEntry:(Ljdk/internal/jmod/JmodFile$Section;Ljava/lang/String;)Ljava/util/zip/ZipEntry;
            astore 4 /* ze */
        start local 4 // java.util.zip.ZipEntry ze
         1: .line 80
            aload 0 /* this */
            getfield jdk.tools.jmod.JmodOutputStream.zos:Ljava/util/zip/ZipOutputStream;
            aload 4 /* ze */
            invokevirtual java.util.zip.ZipOutputStream.putNextEntry:(Ljava/util/zip/ZipEntry;)V
         2: .line 81
            aload 1 /* in */
            aload 0 /* this */
            getfield jdk.tools.jmod.JmodOutputStream.zos:Ljava/util/zip/ZipOutputStream;
            invokevirtual java.io.InputStream.transferTo:(Ljava/io/OutputStream;)J
            pop2
         3: .line 82
            aload 0 /* this */
            getfield jdk.tools.jmod.JmodOutputStream.zos:Ljava/util/zip/ZipOutputStream;
            invokevirtual java.util.zip.ZipOutputStream.closeEntry:()V
         4: .line 83
            return
        end local 4 // java.util.zip.ZipEntry ze
        end local 3 // java.lang.String name
        end local 2 // jdk.internal.jmod.JmodFile$Section section
        end local 1 // java.io.InputStream in
        end local 0 // jdk.tools.jmod.JmodOutputStream this
      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 // jdk.tools.jmod.JmodOutputStream this
        start local 1 // byte[] bytes
        start local 2 // jdk.internal.jmod.JmodFile$Section section
        start local 3 // java.lang.String path
         0: .line 91
            aload 0 /* this */
            aload 2 /* section */
            aload 3 /* path */
            invokevirtual jdk.tools.jmod.JmodOutputStream.newEntry:(Ljdk/internal/jmod/JmodFile$Section;Ljava/lang/String;)Ljava/util/zip/ZipEntry;
            astore 4 /* ze */
        start local 4 // java.util.zip.ZipEntry ze
         1: .line 92
            aload 0 /* this */
            getfield jdk.tools.jmod.JmodOutputStream.zos:Ljava/util/zip/ZipOutputStream;
            aload 4 /* ze */
            invokevirtual java.util.zip.ZipOutputStream.putNextEntry:(Ljava/util/zip/ZipEntry;)V
         2: .line 93
            aload 0 /* this */
            getfield jdk.tools.jmod.JmodOutputStream.zos:Ljava/util/zip/ZipOutputStream;
            aload 1 /* bytes */
            invokevirtual java.util.zip.ZipOutputStream.write:([B)V
         3: .line 94
            aload 0 /* this */
            getfield jdk.tools.jmod.JmodOutputStream.zos:Ljava/util/zip/ZipOutputStream;
            invokevirtual java.util.zip.ZipOutputStream.closeEntry:()V
         4: .line 95
            return
        end local 4 // java.util.zip.ZipEntry ze
        end local 3 // java.lang.String path
        end local 2 // jdk.internal.jmod.JmodFile$Section section
        end local 1 // byte[] bytes
        end local 0 // jdk.tools.jmod.JmodOutputStream this
      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=3, locals=5, args_size=3
        start local 0 // jdk.tools.jmod.JmodOutputStream this
        start local 1 // java.io.InputStream in
        start local 2 // jdk.internal.jmod.JmodFile$Entry e
         0: .line 101
            aload 2 /* e */
            invokevirtual jdk.internal.jmod.JmodFile$Entry.zipEntry:()Ljava/util/zip/ZipEntry;
            astore 3 /* e1 */
        start local 3 // java.util.zip.ZipEntry e1
         1: .line 105
            new java.util.zip.ZipEntry
            dup
            aload 3 /* e1 */
            invokevirtual java.util.zip.ZipEntry.getName:()Ljava/lang/String;
            invokespecial java.util.zip.ZipEntry.<init>:(Ljava/lang/String;)V
            astore 4 /* e2 */
        start local 4 // java.util.zip.ZipEntry e2
         2: .line 106
            aload 4 /* e2 */
            aload 3 /* e1 */
            invokevirtual java.util.zip.ZipEntry.getMethod:()I
            invokevirtual java.util.zip.ZipEntry.setMethod:(I)V
         3: .line 107
            aload 4 /* e2 */
            aload 3 /* e1 */
            invokevirtual java.util.zip.ZipEntry.getTime:()J
            invokevirtual java.util.zip.ZipEntry.setTime:(J)V
         4: .line 108
            aload 4 /* e2 */
            aload 3 /* e1 */
            invokevirtual java.util.zip.ZipEntry.getComment:()Ljava/lang/String;
            invokevirtual java.util.zip.ZipEntry.setComment:(Ljava/lang/String;)V
         5: .line 109
            aload 4 /* e2 */
            aload 3 /* e1 */
            invokevirtual java.util.zip.ZipEntry.getExtra:()[B
            invokevirtual java.util.zip.ZipEntry.setExtra:([B)V
         6: .line 110
            aload 3 /* e1 */
            invokevirtual java.util.zip.ZipEntry.getMethod:()I
            ifne 9
         7: .line 111
            aload 4 /* e2 */
            aload 3 /* e1 */
            invokevirtual java.util.zip.ZipEntry.getSize:()J
            invokevirtual java.util.zip.ZipEntry.setSize:(J)V
         8: .line 112
            aload 4 /* e2 */
            aload 3 /* e1 */
            invokevirtual java.util.zip.ZipEntry.getCrc:()J
            invokevirtual java.util.zip.ZipEntry.setCrc:(J)V
         9: .line 114
      StackMap locals: java.util.zip.ZipEntry java.util.zip.ZipEntry
      StackMap stack:
            aload 0 /* this */
            getfield jdk.tools.jmod.JmodOutputStream.zos:Ljava/util/zip/ZipOutputStream;
            aload 4 /* e2 */
            invokevirtual java.util.zip.ZipOutputStream.putNextEntry:(Ljava/util/zip/ZipEntry;)V
        10: .line 115
            aload 0 /* this */
            getfield jdk.tools.jmod.JmodOutputStream.zos:Ljava/util/zip/ZipOutputStream;
            aload 1 /* in */
            invokevirtual java.io.InputStream.readAllBytes:()[B
            invokevirtual java.util.zip.ZipOutputStream.write:([B)V
        11: .line 116
            aload 0 /* this */
            getfield jdk.tools.jmod.JmodOutputStream.zos:Ljava/util/zip/ZipOutputStream;
            invokevirtual java.util.zip.ZipOutputStream.closeEntry:()V
        12: .line 117
            return
        end local 4 // java.util.zip.ZipEntry e2
        end local 3 // java.util.zip.ZipEntry e1
        end local 2 // jdk.internal.jmod.JmodFile$Entry e
        end local 1 // java.io.InputStream in
        end local 0 // jdk.tools.jmod.JmodOutputStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0   13     0  this  Ljdk/tools/jmod/JmodOutputStream;
            0   13     1    in  Ljava/io/InputStream;
            0   13     2     e  Ljdk/internal/jmod/JmodFile$Entry;
            1   13     3    e1  Ljava/util/zip/ZipEntry;
            2   13     4    e2  Ljava/util/zip/ZipEntry;
    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 // jdk.tools.jmod.JmodOutputStream this
        start local 1 // jdk.internal.jmod.JmodFile$Section section
        start local 2 // java.lang.String path
         0: .line 120
            aload 0 /* this */
            aload 1 /* section */
            aload 2 /* path */
            invokevirtual jdk.tools.jmod.JmodOutputStream.contains:(Ljdk/internal/jmod/JmodFile$Section;Ljava/lang/String;)Z
            ifeq 2
         1: .line 121
            new java.io.IOException
            dup
            new java.lang.StringBuilder
            dup
            ldc "duplicate entry: "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 2 /* path */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            ldc " in section "
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            aload 1 /* section */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
            athrow
         2: .line 123
      StackMap locals:
      StackMap stack:
            aload 1 /* section */
            invokevirtual jdk.internal.jmod.JmodFile$Section.jmodDir:()Ljava/lang/String;
            astore 3 /* prefix */
        start local 3 // java.lang.String prefix
         3: .line 124
            aload 3 /* prefix */
            iconst_1
            anewarray java.lang.String
            dup
            iconst_0
            aload 2 /* path */
            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;
         4: .line 125
            getstatic java.io.File.separatorChar:C
            bipush 47
            invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
         5: .line 124
            astore 4 /* name */
        start local 4 // java.lang.String name
         6: .line 126
            aload 0 /* this */
            getfield jdk.tools.jmod.JmodOutputStream.entries:Ljava/util/Map;
            aload 1 /* section */
            invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
            checkcast java.util.Set
            aload 2 /* path */
            invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
            pop
         7: .line 127
            new java.util.zip.ZipEntry
            dup
            aload 4 /* name */
            invokespecial java.util.zip.ZipEntry.<init>:(Ljava/lang/String;)V
            areturn
        end local 4 // java.lang.String name
        end local 3 // java.lang.String prefix
        end local 2 // java.lang.String path
        end local 1 // jdk.internal.jmod.JmodFile$Section section
        end local 0 // jdk.tools.jmod.JmodOutputStream this
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0    8     0     this  Ljdk/tools/jmod/JmodOutputStream;
            0    8     1  section  Ljdk/internal/jmod/JmodFile$Section;
            0    8     2     path  Ljava/lang/String;
            3    8     3   prefix  Ljava/lang/String;
            6    8     4     name  Ljava/lang/String;
    Exceptions:
      throws java.io.IOException
    MethodParameters:
         Name  Flags
      section  
      path     

  public boolean contains(jdk.internal.jmod.JmodFile$Section, java.lang.String);
    descriptor: (Ljdk/internal/jmod/JmodFile$Section;Ljava/lang/String;)Z
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=4, args_size=3
        start local 0 // jdk.tools.jmod.JmodOutputStream this
        start local 1 // jdk.internal.jmod.JmodFile$Section section
        start local 2 // java.lang.String path
         0: .line 131
            aload 0 /* this */
            getfield jdk.tools.jmod.JmodOutputStream.entries:Ljava/util/Map;
            aload 1 /* section */
            invokedynamic apply()Ljava/util/function/Function;
              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;)Ljava/lang/Object;
                  jdk/tools/jmod/JmodOutputStream.lambda$0(Ljdk/internal/jmod/JmodFile$Section;)Ljava/util/Set; (6)
                  (Ljdk/internal/jmod/JmodFile$Section;)Ljava/util/Set;
            invokeinterface java.util.Map.computeIfAbsent:(Ljava/lang/Object;Ljava/util/function/Function;)Ljava/lang/Object;
            checkcast java.util.Set
            astore 3 /* set */
        start local 3 // java.util.Set set
         1: .line 132
            aload 3 /* set */
            aload 2 /* path */
            invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
            ireturn
        end local 3 // java.util.Set set
        end local 2 // java.lang.String path
        end local 1 // jdk.internal.jmod.JmodFile$Section section
        end local 0 // jdk.tools.jmod.JmodOutputStream this
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0    2     0     this  Ljdk/tools/jmod/JmodOutputStream;
            0    2     1  section  Ljdk/internal/jmod/JmodFile$Section;
            0    2     2     path  Ljava/lang/String;
            1    2     3      set  Ljava/util/Set<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 // jdk.tools.jmod.JmodOutputStream this
        start local 1 // int b
         0: .line 137
            aload 0 /* this */
            getfield jdk.tools.jmod.JmodOutputStream.zos:Ljava/util/zip/ZipOutputStream;
            iload 1 /* b */
            invokevirtual java.util.zip.ZipOutputStream.write:(I)V
         1: .line 138
            return
        end local 1 // int b
        end local 0 // jdk.tools.jmod.JmodOutputStream this
      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 // jdk.tools.jmod.JmodOutputStream this
         0: .line 142
            aload 0 /* this */
            getfield jdk.tools.jmod.JmodOutputStream.zos:Ljava/util/zip/ZipOutputStream;
            invokevirtual java.util.zip.ZipOutputStream.close:()V
         1: .line 143
            return
        end local 0 // jdk.tools.jmod.JmodOutputStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Ljdk/tools/jmod/JmodOutputStream;
    Exceptions:
      throws java.io.IOException

  private static java.util.Set lambda$0(jdk.internal.jmod.JmodFile$Section);
    descriptor: (Ljdk/internal/jmod/JmodFile$Section;)Ljava/util/Set;
    flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // jdk.internal.jmod.JmodFile$Section k
         0: .line 131
            new java.util.HashSet
            dup
            invokespecial java.util.HashSet.<init>:()V
            areturn
        end local 0 // jdk.internal.jmod.JmodFile$Section k
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0     k  Ljdk/internal/jmod/JmodFile$Section;
}
SourceFile: "JmodOutputStream.java"
InnerClasses:
  public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
  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