Here you can find the source of saveParameters()
public static void saveParameters()
//package com.java2s; //License from project: Apache License import java.io.FileOutputStream; import java.io.IOException; import java.io.ObjectOutputStream; import java.util.HashMap; public class Main { private final static String FILENAME_PARAMETERS = "parameters.pfe"; private static HashMap<String, Object> paramsMap; public static void saveParameters() { try {// w w w.j a v a 2 s . c o m FileOutputStream fos = new FileOutputStream(FILENAME_PARAMETERS); ObjectOutputStream oos = new ObjectOutputStream(fos); oos.writeObject(paramsMap); oos.close(); fos.close(); System.out.printf("Serialized HashMap data is saved in parameters.pfe"); } catch (IOException ioe) { ioe.printStackTrace(); } } }