public void save(OutputStream out) throws IOException {
        Properties props = new Properties();
        for (Map.Entry<String, Object> entry : entrySet()) {
            Object val = entry.getValue();
            String type;
            if (val instanceof Integer) {
                type = "(int)";
            } else if (val instanceof String) {
                type = "(string)";
            } else if (val instanceof Boolean) {
                type = "(bool)";
            } else if (val instanceof Float) {
                type = "(float)";
            } else {
                // See the note in the AppSettings.save(String)
                // method regarding object type settings.
                continue;
            }
            props.setProperty(entry.getKey() + type, val.toString());
        }
        props.store(out, "jME3 AppSettings");
    }
Saves all settings to the given properties output stream.

@param out The OutputStream to write to
@throws IOException If an IOException occurs

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