Interface ResourceManager

All Known Implementing Classes:
DefaultResourceManager

public interface ResourceManager
The ResourceManager API.
Author:
Manfred Riem ([email protected])
  • Method Details

    • addResource

      void addResource(Resource resource)
      Add the resource.
      Parameters:
      resource - the resource.
    • getResource

      URL getResource(String location) throws MalformedURLException
      Get the resource.
      Parameters:
      location - the location.
      Returns:
      the URL.
      Throws:
      MalformedURLException - when the location is malformed.
    • getResources

      Collection<URL> getResources(String location) throws MalformedURLException
      Get the resources.
      Parameters:
      location - the location
      Returns:
      the URLs.
      Throws:
      MalformedURLException - when the location is malformed.
    • getResourceAsStream

      InputStream getResourceAsStream(String location)
      Get the resource as a stream.
      Parameters:
      location - the location.
      Returns:
      the input stream, or null if not found.
    • getAllLocations

      Stream<String> getAllLocations()
      Returns all the locations for this resource manager.
      Returns:
      all the locations for this resource manager
    • getResourceList

      List<Resource> getResourceList()
      Returns all the locations for this resource manager.
      Returns:
      all the locations for this resource manager