- All Known Subinterfaces:
JVMPluginResource,PluginContainer,PluginResource
- All Known Implementing Classes:
StandardPluginContainer
public interface ResourceQueryable
Represents an entity that can be queried for
resources.-
Method Summary
Modifier and TypeMethodDescriptionlocateResource(String path) Resolves the location of a bundled resource, given a relative path.default Optional<InputStream> openResource(String path) Opens anInputStreamof the location of a bundled resource, given a relative path.
-
Method Details
-
locateResource
Resolves the location of a bundled resource, given a relative path.- Parameters:
path- The relative path- Returns:
- The resolved resource location, if available
-
openResource
Opens anInputStreamof the location of a bundled resource, given a relative path.- Parameters:
path- The relative path- Returns:
- The opened resource, if available
-