Code example for Properties

Methods: load

0
    } 
 
    private static Properties getProperties(File propertiesFile) {
        if (!propertiesFile.exists()) return null;
 
        Properties properties = new Properties();
        FileInputStream stream;
        try { 
            stream = new FileInputStream(propertiesFile);
        } catch (FileNotFoundException e) {
            throw new RuntimeException(e);
        } 
 
        try { 
            try { 
                properties.load(stream);
            } finally { 
                stream.close();
            } 
        } catch (IOException e) {
            throw new RuntimeException(e);
Connect your IDE to all the code out there  Get Codota for Java