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 // java.nio.file.Path file
         0: .line 52
            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 53
            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 54
            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 58
            aload 0 /* this */
            invokespecial java.io.OutputStream.<init>:()V
         1: .line 59
            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;
         2: .line 61
            aload 1 /* out */
            invokestatic jdk.internal.jmod.JmodFile.writeMagicNumber:(Ljava/io/OutputStream;)V
         3: .line 62
            goto 6
      StackMap locals: jdk.tools.jmod.JmodOutputStream java.io.OutputStream
      StackMap stack: java.io.IOException
         4: astore 2 /* e */
        start local 2 // java.io.IOException e
         5: .line 63
            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
         6: .line 65
      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    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 // 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 73
            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 74
            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 75
            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 76
            aload 0 /* this */
            getfield jdk.tools.jmod.JmodOutputStream.zos:Ljava/util/zip/ZipOutputStream;
            invokevirtual java.util.zip.ZipOutputStream.closeEntry:()V
         4: .line 77
            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 85
            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 86
            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 87
            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 88
            aload 0 /* this */
            getfield jdk.tools.jmod.JmodOutputStream.zos:Ljava/util/zip/ZipOutputStream;
            invokevirtual java.util.zip.ZipOutputStream.closeEntry:()V
         4: .line 89
            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=2, locals=3, 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 95
            aload 0 /* this */
            getfield jdk.tools.jmod.JmodOutputStream.zos:Ljava/util/zip/ZipOutputStream;
            aload 2 /* e */
            invokevirtual jdk.internal.jmod.JmodFile$Entry.zipEntry:()Ljava/util/zip/ZipEntry;
            invokevirtual java.util.zip.ZipOutputStream.putNextEntry:(Ljava/util/zip/ZipEntry;)V
         1: .line 96
            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
         2: .line 97
            aload 0 /* this */
            getfield jdk.tools.jmod.JmodOutputStream.zos:Ljava/util/zip/ZipOutputStream;
            invokevirtual java.util.zip.ZipOutputStream.closeEntry:()V
         3: .line 98
            return
        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    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 // jdk.tools.jmod.JmodOutputStream this
        start local 1 // jdk.internal.jmod.JmodFile$Section section
        start local 2 // java.lang.String path
         0: .line 101
            aload 1 /* section */
            invokevirtual jdk.internal.jmod.JmodFile$Section.jmodDir:()Ljava/lang/String;
            astore 3 /* prefix */
        start local 3 // java.lang.String prefix
         1: .line 102
            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;
         2: .line 103
            getstatic java.io.File.separatorChar:C
            bipush 47
            invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
         3: .line 102
            astore 4 /* name */
        start local 4 // java.lang.String name
         4: .line 104
            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    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 // jdk.tools.jmod.JmodOutputStream this
        start local 1 // int b
         0: .line 109
            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 110
            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 114
            aload 0 /* this */
            getfield jdk.tools.jmod.JmodOutputStream.zos:Ljava/util/zip/ZipOutputStream;
            invokevirtual java.util.zip.ZipOutputStream.close:()V
         1: .line 115
            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
}
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