Package org.dawb.common.util.io
Class PropUtils
java.lang.Object
org.dawb.common.util.io.PropUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetPropertiesAsString(Properties props) static final PropertiesloadProperties(File file) static final PropertiesloadProperties(InputStream stream) static final PropertiesloadProperties(String path) static final PropertiesloadProperties(HttpURLConnection connection) static PropertiesparseString(String properties) String to be parsed to properties.static final PropertiesstoreKeys(Properties props, File file) static final PropertiesstoreProperties(Properties props, File file) static final PropertiesstoreProperties(Properties props, String path)
-
Constructor Details
-
PropUtils
public PropUtils()
-
-
Method Details
-
loadProperties
- Throws:
IOException
-
loadProperties
- Throws:
IOException
-
loadProperties
- Throws:
IOException
-
storeProperties
- Throws:
IOException
-
storeProperties
- Throws:
IOException
-
storeKeys
- Throws:
IOException
-
loadProperties
- Throws:
IOException
-
getPropertiesAsString
- Throws:
Exception
-
parseString
String to be parsed to properties. In the form of key=value pairs separated by semi colons. You may not use the string = or ; in the keys or values. Keys and values are trimmed so extra spaces will be ignored.- Parameters:
secondId-- Returns:
- map of values extracted from the
-