void list(InputStream in,String files[]) throws IOException {
  ZipInputStream zis=new ZipInputStream(in);
  ZipEntry e;
  while ((e=zis.getNextEntry()) != null) {
    zis.closeEntry();
    printEntry(e,files);
  }
}

void list ( InputStream in , String files [ ] ) throws IOException { ZipInputStream zis = new ZipInputStream ( in ) ; ZipEntry e ; while ( ( e = zis . getNextEntry ( ) ) != null ) { zis . closeEntry ( ) ; printEntry ( e , files ) ; } }
lists contents of jar file .
