public static void closeZipEntry(ZipOutputStream out){
  try {
    out.closeEntry();
  }
 catch (  Exception ex) {
    throw new RuntimeException("Failed to close the current ZipEntry",ex);
  }
}

public static void closeZipEntry ( ZipOutputStream out ) { try { out . closeEntry ( ) ; } catch ( Exception ex ) { throw new RuntimeException ( "Failed to close the current ZipEntry" , ex ) ; } }
closes the current zipentry and positions the stream for writing the next entry .
