| Modifier and Type | Field and Description |
|---|---|
| public static final ResourceLoader | EMPTY
A resource loader containing no resources. |
| Modifier and Type | Method and Description |
|---|---|
| public default URL | |
| public default void | close()
Implements java. Release any system resources or allocations associated with this resource loader. |
| public Resource | Returns: the loaded resource, ornull if no resource is found at the given paththe resource path (must not be path)null)Find a resource from this loader. |
| public default ResourceLoader | Returns: the resource loader (notnull, may be empty)the relative sub-path (must not be path)null)Get a child resource loader for the given child path. |
| public default Manifest | Returns: the manifest, ornull if no manifest was foundGet the manifest for this resource loader, if any. |
| public default void |
| EMPTY | back to summary |
|---|---|
| public static final ResourceLoader EMPTY A resource loader containing no resources. | |
| baseUrl | back to summary |
|---|---|
| public default URL baseUrl() Returns the base URL for this loader.
| |
| close | back to summary |
|---|---|
| public default void close() Implements java. Release any system resources or allocations associated with this resource loader. | |
| findResource | back to summary |
|---|---|
| public Resource findResource(String path) throws IOException Find a resource from this loader.
| |
| getChildLoader | back to summary |
|---|---|
| public default ResourceLoader getChildLoader(String path) Get a child resource loader for the given child path. This method always returns a resource loader, even if the path does not exist. Closing the child loader does not close the enclosing loader.
| |
| manifest | back to summary |
|---|---|
| public default Manifest manifest() throws IOException Get the manifest for this resource loader, if any. The default implementation constructs a new instance every time, so the caller should avoid repeated invocation of this method, caching as needed.
| |
| release | back to summary |
|---|---|
| public default void release() Hint that this resource loader is unlikely to be used in the near future. | |