Class ScatterZipOutputStream.ZipEntryWriter

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable
    Enclosing class:
    ScatterZipOutputStream

    public static class ScatterZipOutputStream.ZipEntryWriter
    extends java.lang.Object
    implements java.io.Closeable
    Writes ZIP entries to a ZIP archive.
    • Constructor Detail

      • ZipEntryWriter

        public ZipEntryWriter​(ScatterZipOutputStream out)
                       throws java.io.IOException
        Constructs a new instance.
        Parameters:
        out - a ScatterZipOutputStream.
        Throws:
        java.io.IOException - if an I/O error occurs.
    • Method Detail

      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException
      • writeNextZipEntry

        public void writeNextZipEntry​(ZipArchiveOutputStream target)
                               throws java.io.IOException
        Writes the next ZIP entry to the given target.
        Parameters:
        target - Where to write.
        Throws:
        java.io.IOException - if an I/O error occurs.