![JAR search and dependency download from the Maven repository](/logo.png)
br.com.codecode.dryutil.LoadProperties Maven / Gradle / Ivy
package br.com.codecode.dryutil;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
public class LoadProperties {
public static Properties readProperties(File file) throws IOException {
Properties properties = new Properties();
properties.load(new FileInputStream(file));
return properties;
}
public static Properties readProperties(InputStream inputStream) throws IOException {
Properties properties = new Properties();
properties.load(inputStream);
return properties;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy