Java Properties Load from File loadProperties(final ZipFile file, final ZipEntry ze)

Here you can find the source of loadProperties(final ZipFile file, final ZipEntry ze)

Description

load Properties

License

Open Source License

Declaration

private static Properties loadProperties(final ZipFile file, final ZipEntry ze) throws IOException 

Method Source Code

//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;
    }
}

Related

  1. loadProperties(final Class clasz, final String propertiesFilename)
  2. loadProperties(final File f)
  3. loadProperties(final File propertiesFile)
  4. loadProperties(final String file)
  5. loadProperties(final String fileName)
  6. loadProperties(JarFile enclosedJarFile, String jarEntryPath)
  7. loadProperties(Map map, File file, String encoding)
  8. loadProperties(ProcessingEnvironment env, String fileName)
  9. loadProperties(Properties properties, File file)