| Access | Constructor and Description |
|---|---|
| public | PathResourceLoader(final Path
the base path (must not be base)null)Construct a new instance Note to open a JAR file, use |
| public | PathResourceLoader(final FileSystem
the filesystem (must not be fs)null)Construct a new instance from a filesystem's root. |
| Modifier and Type | Method and Description |
|---|---|
| public URL | baseUrl()
Overrides default io. Returns the base URL for this loader. |
| public void | close()
Overrides default io. Release any system resources or allocations associated with this resource loader. |
| public Resource | findResource(final String
the resource path (must not be path)null)Implements io. Find a resource from this loader. |
| PathResourceLoader | back to summary |
|---|---|
| public PathResourceLoader(final Path base) Construct a new instance Note to open a JAR file, use
| |
| PathResourceLoader | back to summary |
|---|---|
| public PathResourceLoader(final FileSystem fs) Construct a new instance from a filesystem's root. The filesystem is closed when this resource loader is closed Note to open a JAR file, use
| |
| baseUrl | back to summary |
|---|---|
| public URL baseUrl() Overrides default io. Doc from io. Returns the base URL for this loader.
| |
| close | back to summary |
|---|---|
| public void close() Overrides default io. Doc from io. Release any system resources or allocations associated with this resource loader. | |
| findResource | back to summary |
|---|---|
| public Resource findResource(final String path) Implements io. Doc from io. Find a resource from this loader. | |