Here you can find the source of loadParams(String fileName)
public static Properties loadParams(String fileName)
//package com.java2s; //License from project: Apache License import java.io.File; import java.io.FileInputStream; import java.io.InputStream; import java.util.Properties; public class Main { public static Properties loadParams(String fileName) { Properties props = new Properties(); try {/*ww w . j a v a2 s .c om*/ File f = new File(fileName); InputStream is = new FileInputStream(f); // Try loading properties from the file (if found) props.load(is); } catch (Exception e) { } return props; } }