Package com.aspectran.utils
Class SystemUtils
java.lang.Object
com.aspectran.utils.SystemUtils
Helpers for java.lang.System.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
static String
getProperty
(String key) Gets a System property, defaulting tonull
if the property cannot be read.static String
getProperty
(String name, String defVal) static String
static String
-
Constructor Details
-
SystemUtils
public SystemUtils()
-
-
Method Details
-
getProperty
Gets a System property, defaulting to
null
if the property cannot be read.If a
SecurityException
is caught, the return value isnull
.- Parameters:
key
- the name of the system property- Returns:
- the system property value or
null
if a security problem occurs
-
getProperty
-
getJavaIoTmpDir
-
getUserHome
-
getUserDir
-