Interface ResourceQueryable

All Known Subinterfaces:
JVMPluginResource, PluginContainer, PluginResource
All Known Implementing Classes:
StandardPluginContainer

public interface ResourceQueryable
Represents an entity that can be queried for resources.
  • Method Details

    • locateResource

      Optional<URI> locateResource(String path)
      Resolves the location of a bundled resource, given a relative path.
      Parameters:
      path - The relative path
      Returns:
      The resolved resource location, if available
    • openResource

      default Optional<InputStream> openResource(String path)
      Opens an InputStream of the location of a bundled resource, given a relative path.
      Parameters:
      path - The relative path
      Returns:
      The opened resource, if available