code: private void getNextFile(final InputStream is) throws IOException {
      if (is instanceof  java.util.zip.ZipInputStream) {
        ZipEntry ze = ((ZipInputStream) is).getNextEntry();
        while (ze != null && ze.isDirectory())
          ze = ((ZipInputStream) is).getNextEntry();
      }
    }
docs: This method will try to get the next file to be parsed.  It will skip over directories if encountered.
  
  @param is
  @throws IOException