Java Properties Save save()

Here you can find the source of save()

Description

Internal method to persist all the settings to the file

License

Open Source License

Declaration

private static void save() 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.io.FileWriter;
import java.io.IOException;
import java.util.Properties;

public class Main {
    public static final String SETTINGS_FILEPATH = ".phoenix_settings";
    private static Properties properties = null;

    /**/* w  w  w. ja v  a  2  s.  co m*/
     * Internal method to persist all the settings to the file
     */
    private static void save() {

        if (properties != null) {
            try {
                properties.store(new FileWriter(SETTINGS_FILEPATH), "");
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
    }
}

Related

  1. save()
  2. save(File file, Properties properties)
  3. save(Properties properties, File propertiesFile)
  4. save(Properties props, File file, String comment)