public static boolean containsEntry ( File zip , String name ) { ZipFile zf = null ; try { zf = new ZipFile ( zip ) ; return zf . getEntry ( name ) != null ; } catch ( IOException e ) { throw ZipExceptionUtil . rethrow ( e ) ; } finally { closeQuietly ( zf ) ; } }
Checks if the ZIP file contains the given entry .