public void load(InputStream in) throws IOException {
        Properties props = new Properties();
        props.load(in);
        for (Map.Entry<Object, Object> entry : props.entrySet()) {
            String key = (String) entry.getKey();
            String val = (String) entry.getValue();
            if (val != null) {
                val = val.trim();
            }
            if (key.endsWith("(int)")) {
                key = key.substring(0, key.length() - 5);
                int iVal = Integer.parseInt(val);
                putInteger(key, iVal);
            } else if (key.endsWith("(string)")) {
                putString(key.substring(0, key.length() - 8), val);
            } else if (key.endsWith("(bool)")) {
                boolean bVal = Boolean.parseBoolean(val);
                putBoolean(key.substring(0, key.length() - 6), bVal);
            } else if (key.endsWith("(float)")) {
                float fVal = Float.parseFloat(val);
                putFloat(key.substring(0, key.length() - 7), fVal);
            } else {
                throw new IOException("Cannot parse key: " + key);
            }
        }
    }
Loads the settings from the given properties input stream.

@param in The InputStream to load from
@throws IOException If an IOException occurs

@see #save(java.io.OutputStream)
jme3-core/src/main/java/com/jme3/system/AppSettings.java