public class StringUtil extends Object
| Constructor and Description |
|---|
StringUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getString(String propertyName,
String defaultVal)
Returns the string value of the system property with the
specified name.
|
public static String getString(String propertyName, String defaultVal)
System.getProperty(java.lang.String) method.
The second argument is the default value. The default value is
returned if there is no property of the specified name or if the
specified name is empty or null.
propertyName - property name.defaultVal - default value.String value of the property.SecurityException - for the same reasons as System.getPropertySystem.getProperty(java.lang.String),
System.getProperty(java.lang.String, java.lang.String)Copyright © 2016–2020. All rights reserved.