Package org.cyclos.server.utils
Class PropertiesHelper
- java.lang.Object
-
- org.cyclos.server.utils.PropertiesHelper
-
public class PropertiesHelper extends Object
Contains helper methods forProperties
-
-
Constructor Summary
Constructors Constructor Description PropertiesHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Map<String,String>asMap(Properties properties)Converts the given properties to a Mapstatic Propertiesfrom(InputStream in)Parses the given input stream as aPropertiesobjectstatic Propertiesfrom(Reader reader)Parses the given reader as aPropertiesobjectstatic Propertiesfrom(String string)Parses the given string as aPropertiesobject
-
-
-
Method Detail
-
asMap
public static Map<String,String> asMap(Properties properties)
Converts the given properties to a Map
-
from
public static Properties from(InputStream in)
Parses the given input stream as aPropertiesobject
-
from
public static Properties from(Reader reader)
Parses the given reader as aPropertiesobject
-
from
public static Properties from(String string)
Parses the given string as aPropertiesobject
-
-