Here you can find the source of getZipEntry(ZipFile zip, final String name)
public static ZipEntry getZipEntry(ZipFile zip, final String name) throws IOException
//package com.java2s; /****************************************************************************** * Copyright (c) 2015 Oracle/*from w w w . j a v a 2 s. com*/ * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Konstantin Komissarchik - initial implementation and ongoing maintenance ******************************************************************************/ import java.io.IOException; import java.util.Enumeration; import java.util.zip.ZipEntry; import java.util.zip.ZipFile; public class Main { public static ZipEntry getZipEntry(ZipFile zip, final String name) throws IOException { final String lcasename = name.toLowerCase(); for (Enumeration<?> itr = zip.entries(); itr.hasMoreElements();) { final ZipEntry zipentry = (ZipEntry) itr.nextElement(); if (zipentry.getName().toLowerCase().equals(lcasename)) { return zipentry; } } return null; } }