private void putZipEntry(ZipOutputStream zos,String file,byte[] bytes) throws IOException {
  zos.putNextEntry(new ZipEntry(file));
  zos.write(bytes);
  zos.closeEntry();
}

private void putZipEntry ( ZipOutputStream zos , String file , byte [ ] bytes ) throws IOException { zos . putNextEntry ( new ZipEntry ( file ) ) ; zos . write ( bytes ) ; zos . closeEntry ( ) ; }
put the zip entry into the zip output stream
