Package com.mchange.v2.util
Class PropertiesUtils
- java.lang.Object
-
- com.mchange.v2.util.PropertiesUtils
-
public final class PropertiesUtils extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Properties
fromString(java.lang.String propsString)
static java.util.Properties
fromString(java.lang.String propsString, java.lang.String encoding)
static int
getIntProperty(java.util.Properties props, java.lang.String name, int dflt)
static java.lang.String
toString(java.util.Properties props, java.lang.String comment)
static java.lang.String
toString(java.util.Properties props, java.lang.String comment, java.lang.String encoding)
-
-
-
Method Detail
-
getIntProperty
public static int getIntProperty(java.util.Properties props, java.lang.String name, int dflt) throws java.lang.NumberFormatException
- Throws:
java.lang.NumberFormatException
-
fromString
public static java.util.Properties fromString(java.lang.String propsString, java.lang.String encoding) throws java.io.UnsupportedEncodingException
- Throws:
java.io.UnsupportedEncodingException
-
fromString
public static java.util.Properties fromString(java.lang.String propsString)
-
toString
public static java.lang.String toString(java.util.Properties props, java.lang.String comment, java.lang.String encoding) throws java.io.UnsupportedEncodingException
- Throws:
java.io.UnsupportedEncodingException
-
toString
public static java.lang.String toString(java.util.Properties props, java.lang.String comment)
-
-