title: What is the best way to check if a FileInputStream is closed?
body: <p>So I have this <em>FileInputStream</em> that is required to create a <em>ZipInputStream</em> and I want to know what happens to the <em>ZipInputStream</em> if the <em>FileInputStream</em> is closed. Consider the following code:</p>
  
  <pre><code>public void Foo(File zip) throws ZipException{
       ZipInputStream zis;
       FileInputStream fis = new FileInputStream(zip);
  
       try{
           zis = new ZipInputStream(fis);
       } catch (FileNotFoundException ex) {
           throw new ZipException("Error opening ZIP file for reading", ex);
       } finally {
           if(fis != null){ fis.close(); 
       }
  }
  </code></pre>
  
  <p>Does <strong>zis</strong> remais open? What happens to the ZipInputStream object? Is there a way I can test this?</p>