Java tutorial
//package com.java2s; import java.io.IOException; import java.io.StringReader; import java.util.Properties; public class Main { public static Properties getProperties(String string) { Properties properties = new Properties(); try { properties.load(new StringReader(string)); } catch (IOException e) { e.printStackTrace(); } return properties; } }