Here you can find the source of loadProperties(final ZipFile file, final ZipEntry ze)
private static Properties loadProperties(final ZipFile file, final ZipEntry ze) throws IOException
//package com.java2s; /******************************************************************************* * Copyright (c) 2014 IBH SYSTEMS GmbH.// w w w . j a v a 2 s . co m * 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: * IBH SYSTEMS GmbH - initial API and implementation *******************************************************************************/ import java.io.IOException; import java.util.Properties; import java.util.zip.ZipEntry; import java.util.zip.ZipFile; public class Main { private static Properties loadProperties(final ZipFile file, final ZipEntry ze) throws IOException { final Properties p = new Properties(); p.load(file.getInputStream(ze)); return p; } }