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