/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package nl.meg.propertiesutility;

import java.util.HashMap;
import java.util.Map;

/**
 *
 * @author meine
 */
public class Properties {
    private final Map<String, String> properties = new HashMap<>();
   
    public Properties(){

        
    }
    
    public void setProperty(String key, String value){
        properties.put(key, value);
    }
    
    public String getProperty(String property){
        return properties.get(property);
    }
    
    public String getProperty(String property, String defaultValue){
        if(properties.containsKey(property)){
            return properties.get(property);
        }else{
            return defaultValue;
        }
    }
}

@@ -214,16 +214,73 @@
 ility;%0A%0A
+import java.io.InputStream;%0Aimport java.io.OutputStream;%0A
 import j
@@ -918,10 +918,147 @@
 %7D%0A    %7D%0A
+    %0A    public void load(InputStream in)%7B%0A        %0A    %7D%0A    %0A    public void store (OutputStream out, String comments)%7B%0A        %0A    %7D%0A
 %7D%0A

Store and load methods (stubs)