Class ResourceList

java.lang.Object
rs.baselib.lang.ResourceList

public class ResourceList extends Object
List resources available from the classpath.
Author:
ralph
  • Constructor Details

    • ResourceList

      public ResourceList()
  • Method Details

    • getManifests

      public static Collection<Manifest> getManifests()
      Returns all manifest files found.
      Returns:
      the manifests in the order they are found
    • getJars

      public static Collection<JarDescriptor> getJars()
      Returns all JAR files found.
      Returns:
      the JARs in the order they are found
    • getDirectories

      public static Collection<File> getDirectories()
      Returns all directories found.
      Returns:
      the directories in the order they are found
    • getResources

      public 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
      Parameters:
      pattern - the pattern to match
      Returns:
      the resources in the order they are found