@Component public class JavaPropertiesHelper extends Object
Properties class of objects.| Constructor and Description |
|---|
JavaPropertiesHelper() |
| Modifier and Type | Method and Description |
|---|---|
Properties |
getProperties(InputStream inputStream)
Parses the given input stream into a
Properties |
Properties |
getProperties(String propertiesString)
Parses the given string into a
Properties |
Map<String,Object> |
toMap(Properties properties)
|
public Map<String,Object> toMap(Properties properties)
Map <String, Object>.
This conversion is required due to the fact that Properties is an implementation of Map <Object, Object>.properties - PropertiesMap <String, Object>public Properties getProperties(String propertiesString)
PropertiespropertiesString - A StringPropertiespublic Properties getProperties(InputStream inputStream)
PropertiesinputStream - InputStream to parsePropertiesCopyright © 2019. All rights reserved.