Java tutorial
//package com.java2s; //License from project: Apache License import java.io.IOException; import java.util.zip.ZipOutputStream; public class Main { /** * Equivalent to {@link ZipOutputStream#closeEntry()} but without checked * exception. */ public static void closeEntry(ZipOutputStream outputStream) { try { outputStream.closeEntry(); } catch (final IOException e) { throw new RuntimeException(e); } } }