Package com.aspectran.core.util
Class SystemUtils
- java.lang.Object
-
- com.aspectran.core.util.SystemUtils
-
public class SystemUtils extends java.lang.Object
Helpers for java.lang.System.
-
-
Constructor Summary
Constructors Constructor Description SystemUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getJavaIoTmpDir()
static java.lang.String
getProperty(java.lang.String name)
Gets a System property, defaulting tonull
if the property cannot be read.static java.lang.String
getProperty(java.lang.String name, java.lang.String defVal)
-
-
-
Method Detail
-
getProperty
public static java.lang.String getProperty(java.lang.String name)
Gets a System property, defaulting to
null
if the property cannot be read.If a
SecurityException
is caught, the return value isnull
.- Parameters:
name
- the system property name- Returns:
- the system property value or
null
if a security problem occurs
-
getProperty
public static java.lang.String getProperty(java.lang.String name, java.lang.String defVal)
-
getJavaIoTmpDir
public static java.lang.String getJavaIoTmpDir()
-
-