public void extractEntry(ExtZipEntry zipEntry,File outFile,String password) throws IOException, ZipException, DataFormatException {
  ByteArrayOutputStream bos=null;
  FileOutputStream fos=null;
  try {
    bos=new ByteArrayOutputStream(bufferSize);
    fos=new FileOutputStream(outFile);
    extractEntry(zipEntry,bos,password);
    byte[] buffer=bos.toByteArray();
    fos.write(buffer);
  }
  finally {
    if (bos != null) {
      bos.close();
    }
    if (fos != null) {
      fos.close();
    }
  }
}

public void extractEntry ( ExtZipEntry zipEntry , File outFile , String password ) throws IOException , ZipException , DataFormatException { ByteArrayOutputStream bos = null ; FileOutputStream fos = null ; try { bos = new ByteArrayOutputStream ( bufferSize ) ; fos = new FileOutputStream ( outFile ) ; extractEntry ( zipEntry , bos , password ) ; byte [ ] buffer = bos . toByteArray ( ) ; fos . write ( buffer ) ; } finally { if ( bos != null ) { bos . close ( ) ; } if ( fos != null ) { fos . close ( ) ; } } }
extract zipentry - uses in - memory , so your file should not be too big
