public class ResourcesUtils extends Object
| Constructor and Description |
|---|
ResourcesUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Set<Object> |
getAllKeysInProperties(Properties props) |
static List<String> |
getAllResourcesInResourcesTree(ResourcesTree tree)
Get a list of all the resources in a given ResourcesTree.
|
static Properties |
getFlatPropertiesObject(Properties props) |
static Properties |
getMergedProperties(ResourcesTree tree,
String[] properties,
boolean useSystem) |
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 List<String> |
getResourcesInResourcesTreeByExtension(ResourcesTree tree,
String extension)
Get the list of resources in the given ResoucesTree for a given
extension.
|
static void |
printProperties(Properties props) |
public static List<String> getResourcesInResourcesTreeByExtension(ResourcesTree tree, String extension)
tree - extension - The extension.public static List<String> getAllResourcesInResourcesTree(ResourcesTree tree)
tree - The ResourcesTreepublic 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)
public static void printProperties(Properties props)
public static Set<Object> getAllKeysInProperties(Properties props)
public static Properties getFlatPropertiesObject(Properties props)
Copyright © 2013 LSST. All Rights Reserved.