public static boolean containsAnyEntry ( File zip , String [ ] names ) { ZipFile zf = null ; try { zf = new ZipFile ( zip ) ; for ( int i = 0 ; i < names . length ; i ++ ) { if ( zf . getEntry ( names [ i ] ) != null ) { return true ; } } return false ; } catch ( IOException e ) { throw ZipExceptionUtil . rethrow ( e ) ; } finally { closeQuietly ( zf ) ; } }
Checks if the ZIP file contains any of the given entries .