Class ResourceList

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

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

    Constructors 
    Constructor Description
    ResourceList()  
  • Method Summary

    Modifier and Type Method Description
    static java.util.Collection<java.io.File> getDirectories()
    Returns all directories found.
    static java.util.Collection<JarDescriptor> getJars()
    Returns all JAR files found.
    static java.util.Collection<java.util.jar.Manifest> getManifests()
    Returns all manifest files found.
    static java.util.Collection<java.net.URL> 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • getManifests

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

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

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

      public static java.util.Collection<java.net.URL> 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
      Parameters:
      pattern - the pattern to match
      Returns:
      the resources in the order they are found