public class ResourceList
extends java.lang.Object
Constructor and Description |
---|
ResourceList() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getProgramDirectory(java.lang.Object object) |
static java.util.Collection<java.lang.String> |
getResources(java.util.regex.Pattern pattern)
for all elements of java.class.path get a Collection of resources Pattern
pattern = Pattern.compile(".*"); gets all resources
|
static java.util.Collection<java.lang.String> |
getResources(java.lang.String element,
java.util.regex.Pattern pattern) |
static void |
main(java.lang.String[] args)
list the resources that match args[0]
|
public static java.util.Collection<java.lang.String> getResources(java.util.regex.Pattern pattern)
pattern
- the pattern to matchpublic static java.util.Collection<java.lang.String> getResources(java.lang.String element, java.util.regex.Pattern pattern)
public static java.lang.String getProgramDirectory(java.lang.Object object)
public static void main(java.lang.String[] args)
args
- args[0] is the pattern to match, or list all resources if
there are no args