Here you can find the source of load(String propertiesString)
public static Properties load(String propertiesString) throws IOException
//package com.java2s; /******************************************************************************* * Copyright (C) 2005 - 2014 TIBCO Software Inc. All rights reserved. * http://www.jaspersoft.com.//from w w w.j ava 2s . c o m * * Unless you have purchased a commercial license agreement from Jaspersoft, * the following license terms apply: * * This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html ******************************************************************************/ import java.io.IOException; import java.io.StringReader; import java.util.Properties; public class Main { public static Properties load(String propertiesString) throws IOException { Properties properties = new Properties(); if (propertiesString != null) properties.load(new StringReader(propertiesString)); return properties; } }