Java Properties Load from File load(String propertiesString)

Here you can find the source of load(String propertiesString)

Description

load

License

Open Source License

Declaration

public static Properties load(String propertiesString) throws IOException 

Method Source Code

//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;
    }
}

Related

  1. load(String fileName)
  2. load(String filename)
  3. load(String filename)
  4. load(String fileName)
  5. load(String path)
  6. load(String resource)
  7. load(String resource)
  8. load(String[] paths, String fileName)
  9. loadAccessTokenProperties( InputStream inputStream)