Package rs.baselib.lang
Class ResourceList
java.lang.Object
rs.baselib.lang.ResourceList
List resources available from the classpath.
- Author:
- ralph
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Collection<File>
Returns all directories found.static Collection<JarDescriptor>
getJars()
Returns all JAR files found.static Collection<Manifest>
Returns all manifest files found.static Collection<URL>
getResources
(Pattern pattern) for all elements of java.class.path get a Collection of resources Pattern pattern = Pattern.compile(".*"); gets all resources
-
Constructor Details
-
ResourceList
public ResourceList()
-
-
Method Details
-
getManifests
Returns all manifest files found.- Returns:
- the manifests in the order they are found
-
getJars
Returns all JAR files found.- Returns:
- the JARs in the order they are found
-
getDirectories
Returns all directories found.- Returns:
- the directories in the order they are found
-
getResources
for all elements of java.class.path get a Collection of resources Pattern pattern = Pattern.compile(".*"); gets all resources- Parameters:
pattern
- the pattern to match- Returns:
- the resources in the order they are found
-