public class SystemProperties
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static boolean |
ASSERTIONS_ENABLED |
static boolean |
RUNNING_IN_ECLIPSE |
Constructor and Description |
---|
SystemProperties() |
Modifier and Type | Method and Description |
---|---|
static java.util.Properties |
getAllProperties() |
static boolean |
getBoolean(java.lang.String name)
Get boolean property, returning false if a security manager prevents us
from accessing system properties
|
static boolean |
getBoolean(java.lang.String name,
boolean defaultValue) |
static int |
getInt(java.lang.String name,
int defaultValue) |
static java.lang.Integer |
getInteger(java.lang.String arg0,
int arg1)
Deprecated.
Use
getInt(String,int) instead |
static java.util.Properties |
getLocalProperties() |
static java.lang.String |
getOSDependentProperty(java.lang.String name) |
static java.lang.String |
getProperty(java.lang.String name) |
static java.lang.String |
getProperty(java.lang.String name,
java.lang.String defaultValue) |
static void |
loadPropertiesFromURL(java.net.URL url)
This method is public to allow clients to set system properties via any
URL |
static java.lang.String |
rewriteURLAccordingToProperties(java.lang.String u) |
static void |
setProperty(java.lang.String name,
java.lang.String value) |
public static final boolean ASSERTIONS_ENABLED
public static final boolean RUNNING_IN_ECLIPSE
public static java.util.Properties getLocalProperties()
public static java.util.Properties getAllProperties()
public static void loadPropertiesFromURL(java.net.URL url)
URL
url
- an url to load system properties from, may be nullerrorMsgpublic static boolean getBoolean(java.lang.String name)
(incomplete) list of known system properties
public static boolean getBoolean(java.lang.String name, boolean defaultValue)
@Deprecated public static java.lang.Integer getInteger(java.lang.String arg0, int arg1)
getInt(String,int)
insteadarg0
- property namearg1
- default valuepublic static int getInt(java.lang.String name, int defaultValue)
name
- property namedefaultValue
- default valuepublic static java.lang.String getOSDependentProperty(java.lang.String name)
name
- property namepublic static java.lang.String getProperty(java.lang.String name)
name
- property namepublic static void setProperty(java.lang.String name, java.lang.String value)
public static java.lang.String getProperty(java.lang.String name, java.lang.String defaultValue)
name
- property namedefaultValue
- default valuepublic static java.lang.String rewriteURLAccordingToProperties(java.lang.String u)
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.