Here you can find the source of getZipEntry(String name, ZipFile zipFile)
public static ZipEntry getZipEntry(String name, ZipFile zipFile)
//package com.java2s; // The contents of this file are subject to the Mozilla Public License import java.util.Enumeration; import java.util.zip.ZipEntry; import java.util.zip.ZipFile; public class Main { public static ZipEntry getZipEntry(String name, ZipFile zipFile) { Enumeration<? extends ZipEntry> entries = zipFile.entries(); while (entries.hasMoreElements()) { ZipEntry entry = entries.nextElement(); if (entry.getName().endsWith(name)) { return entry; }/* ww w . j av a2 s.c o m*/ } return null; } }