title: what is this exception's reason, java.io.IOException: Stream closed
body: <p>I have 2 file in a zip file
  I use:</p>
  
  <pre><code>while( (entry = zis.getNextEntry()) != null){
      if(entry.getName() == null ? gomrokcode != null : !entry.getName().equals(gomrokcode))
          maxversion=0;
      Scanner scanner = new Scanner(zis);
      while(scanner.hasNextLine()){
          line = scanner.nextLine();
      }
      scanner.close();
  }
  zis.close();
  </code></pre>
  
  <p>for accessing the files
  i get first file , and then when I return to the start of loop for second file
  I get this exception</p>
  
  <pre><code>    SEVERE: null
  java.io.IOException: Stream closed
  at java.util.zip.ZipInputStream.ensureOpen(ZipInputStream.java:66)
  at java.util.zip.ZipInputStream.getNextEntry(ZipInputStream.java:115)
  </code></pre>
  
  <p>what is the reason?</p>