/** * Create properties from the file. * * @param file properties file to load */ public static Properties createFromFile(File file) throws IOException { Properties prop = new Properties(); loadFromFile(prop, file); return prop; }
/** * Loads properties from the file. Properties are appended to the existing * properties object. * * @param p properties to fill in * @param fileName properties file name to load */ public static void loadFromFile(Properties p, String fileName) throws IOException { loadFromFile(p, new File(fileName)); }
/** * Create properties from the file. * * @param file properties file to load */ public static Properties createFromFile(final File file) throws IOException { Properties prop = new Properties(); loadFromFile(prop, file); return prop; }
/** * Loads properties from the file. Properties are appended to the existing * properties object. * * @param p properties to fill in * @param fileName properties file name to load */ public static void loadFromFile(final Properties p, final String fileName) throws IOException { loadFromFile(p, new File(fileName)); }
/** * Create properties from the file. * * @param file properties file to load */ public static Properties createFromFile(final File file) throws IOException { Properties prop = new Properties(); loadFromFile(prop, file); return prop; }
/** * Loads properties from the file. Properties are appended to the existing * properties object. * * @param p properties to fill in * @param fileName properties file name to load */ public static void loadFromFile(final Properties p, final String fileName) throws IOException { loadFromFile(p, new File(fileName)); }