All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.ncredinburgh.tomcat.PropertyParser Maven / Gradle / Ivy

There is a newer version: 0.2
Show newest version
package com.github.ncredinburgh.tomcat;

import java.io.IOException;
import java.io.Reader;
import java.io.StringReader;
import java.util.Properties;

public class PropertyParser {

	public static Properties parseProperties(String propertyString) {
		Properties properties = new Properties();
		try {
			Reader propertyReader = new StringReader(propertyString.replaceAll(";", "\n"));
			properties.load(propertyReader);
		} catch (IOException e) {
			// Can't happen with StringReader
		}
		return properties;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy