public final class PropertiesUtils extends Object
Utility methods for handing property values
.Constructor and Description |
---|
PropertiesUtils() |
Modifier and Type | Method and Description |
---|---|
static String[] |
getProperties(String property)
Loads and parses a given property
|
static String[] |
getProperties(String property,
String[] defaultValues)
Loads a set of System properties that are specified as comma-delimited
strings and returns an array of String values for the specified property.
|
static String |
getProperty(String property)
Loads and parses a given property
|
static String |
getProperty(String property,
String defaultValue)
Loads and parses a given property
|
public static String[] getProperties(String property, String[] defaultValues)
property
- The property to read from the system properties.defaultValues
- A set of default values to use for the property.public static String[] getProperties(String property)
property
- The property to be loaded and parsedpublic static String getProperty(String property, String defaultValue)
property
- The property to read from the system properties.Copyright © 1999–2017 Apache OODT. All rights reserved.