Java URL Load load(Iterable urls)

Here you can find the source of load(Iterable urls)

Description

load

License

Open Source License

Declaration

public static Properties load(Iterable<URL> urls) throws IOException 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.io.IOException;
import java.net.URL;

import java.util.Properties;

public class Main {
    public static Properties load(Iterable<URL> urls) throws IOException {
        Properties properties = new Properties();
        for (URL url : urls) {
            //            properties = new java.util.Properties(properties);
            properties.load(url.openStream());
        }//w  w w .j a  v a  2 s  .  c om
        return properties;
    }
}

Related

  1. findResourcesFromJar(Collection urls, URL url, String resource, ClassLoader cl)
  2. getBundle(String basename, Locale locale, ClassLoader cl, URL url)
  3. getManifestAsString(URLClassLoader cl, String jarBaseName)
  4. load(String fileOrURL)
  5. load(URL pUrl)
  6. load(URL url)
  7. load(URL url)