Class ZipFileInputStream

All Implemented Interfaces:
Closeable, AutoCloseable

public class ZipFileInputStream extends BufferedInputStream
Represents an InputStream from a provided File: In case the file points to a ZIP compressed file, then the uncompressed data of the therein contained file with the same name excluding the ".zip" extension is provided by the InputStream.
  • Constructor Details

    • ZipFileInputStream

      public ZipFileInputStream(File parent, String child) throws IOException
      Instantiates a new zip file input 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.
    • ZipFileInputStream

      public ZipFileInputStream(String parent, String child) throws IOException
      Instantiates a new zip file input 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.
    • ZipFileInputStream

      public ZipFileInputStream(String pathname) throws IOException
      Instantiates a new zip file input 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.
    • ZipFileInputStream

      public ZipFileInputStream(URI uri) throws IOException
      Instantiates a new zip file input 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.
    • ZipFileInputStream

      public ZipFileInputStream(File aFile) throws IOException
      Instantiates a new zip file input 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.