Class ZipFileOutputStream

All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

public class ZipFileOutputStream extends BufferedOutputStream
Represents an OutputStream to a provided File: In case the file points to a ZIP compressed file, then a therein to be contained file with the same name excluding the ".zip" extension is created by the OutputStream.
  • Constructor Details

    • ZipFileOutputStream

      public ZipFileOutputStream(File parent, String child) throws IOException
      Instantiates a new zip file output stream impl.
      Parameters:
      parent - the parent
      child - the child
      Throws:
      ZipException - the zip exception
      FileNotFoundException - the file not found exception
      IOException - Signals that an I/O exception has occurred.
    • ZipFileOutputStream

      public ZipFileOutputStream(String parent, String child) throws IOException
      Instantiates a new zip file output stream impl.
      Parameters:
      parent - the parent
      child - the child
      Throws:
      ZipException - the zip exception
      FileNotFoundException - the file not found exception
      IOException - Signals that an I/O exception has occurred.
    • ZipFileOutputStream

      public ZipFileOutputStream(String pathname) throws IOException
      Instantiates a new zip file output stream impl.
      Parameters:
      pathname - the pathname
      Throws:
      ZipException - the zip exception
      FileNotFoundException - the file not found exception
      IOException - Signals that an I/O exception has occurred.
    • ZipFileOutputStream

      public ZipFileOutputStream(URI uri) throws IOException
      Instantiates a new zip file output stream impl.
      Parameters:
      uri - the uri
      Throws:
      ZipException - the zip exception
      FileNotFoundException - the file not found exception
      IOException - Signals that an I/O exception has occurred.
    • ZipFileOutputStream

      public ZipFileOutputStream(File aFile) throws IOException
      Instantiates a new zip file output stream impl.
      Parameters:
      aFile - the file
      Throws:
      ZipException - the zip exception
      FileNotFoundException - the file not found exception
      IOException - Signals that an I/O exception has occurred.
  • Method Details