public class ResourcesUtils extends Object
| Constructor and Description |
|---|
ResourcesUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Properties |
getFlatPropertiesObject(Properties props) |
static Properties |
getMergedProperties(ResourcesTree tree,
String[] properties,
boolean useSystem,
ResourcesTreeProperties parentProps) |
static Properties |
getMergedPropertyFile(ResourcesTree tree,
String fileName)
Get a merged version of a given property file from the given
ResourcesTree.
|
static Properties |
getMergedPropertyFile(ResourcesTree tree,
String fileName,
boolean useSystem)
Get a merged version of a given property file from the given
ResourcesTree.
|
static InputStream |
getResourceFromResourceTree(ResourcesTree tree,
String resourceName) |
static void |
loadKeySetForProperties(Properties props,
Set<Object> set) |
static void |
printProperties(Properties props) |
public static Properties getMergedPropertyFile(ResourcesTree tree, String fileName)
tree - The ResourcesTree in which property files are searched.fileName - The name of the property file to search for.public static Properties getMergedPropertyFile(ResourcesTree tree, String fileName, boolean useSystem)
tree - The ResourcesTree in which property files are searched.fileName - The name of the property file to search for.useSystem - If true the System Properties will be the parent of the
returned Properties object.public static Properties getMergedProperties(ResourcesTree tree, String[] properties, boolean useSystem, ResourcesTreeProperties parentProps)
public static void printProperties(Properties props)
public static void loadKeySetForProperties(Properties props, Set<Object> set)
public static Properties getFlatPropertiesObject(Properties props)
public static InputStream getResourceFromResourceTree(ResourcesTree tree, String resourceName) throws FileNotFoundException
FileNotFoundExceptionCopyright © 2014 LSST. All rights reserved.