org.jboss.netty.util.internal
类 SystemPropertyUtil

java.lang.Object
  继承者 org.jboss.netty.util.internal.SystemPropertyUtil

public class SystemPropertyUtil
extends java.lang.Object

Accesses the system property swallowing a SecurityException.


方法摘要
static java.lang.String get(java.lang.String key)
          Returns the value of the Java system property with the specified key.
static int get(java.lang.String key, int def)
          Returns the value of the Java system property with the specified key, while falling back to the specified default value if the property access fails.
static java.lang.String get(java.lang.String key, java.lang.String def)
          Returns the value of the Java system property with the specified key, while falling back to the specified default value if the property access fails.
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

方法详细信息

get

public static java.lang.String get(java.lang.String key)
Returns the value of the Java system property with the specified key.

返回:
the property value. null if there's no such property or if an access to the specified property is not allowed.

get

public static java.lang.String get(java.lang.String key,
                                   java.lang.String def)
Returns the value of the Java system property with the specified key, while falling back to the specified default value if the property access fails.

返回:
the property value. def if there's no such property or if an access to the specified property is not allowed.

get

public static int get(java.lang.String key,
                      int def)
Returns the value of the Java system property with the specified key, while falling back to the specified default value if the property access fails.

返回:
the property value. def if there's no such property or if an access to the specified property is not allowed.