| Modifier and Type | Field and Description |
|---|---|
| private final URL | |
| private final JarFile | |
| private Path |
| Access | Constructor and Description |
|---|---|
| public | JarFileResourceLoader(final Path
the path of the JAR file (must not be jarPath)null)Construct a new instance. |
| public | JarFileResourceLoader(final Resource
the resource of the JAR file (must not be resource)null)Construct a new instance from a JAR file contained within a resource. |
| 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. |
| public Manifest | manifest()
Overrides default io. Get the manifest for this resource loader, if any. |
| base | back to summary |
|---|---|
| private final URL base | |
| jarFile | back to summary |
|---|---|
| private final JarFile jarFile | |
| tempFile | back to summary |
|---|---|
| private Path tempFile | |
| JarFileResourceLoader | back to summary |
|---|---|
| public JarFileResourceLoader(final Path jarPath) throws IOException Construct a new instance.
| |
| JarFileResourceLoader | back to summary |
|---|---|
| public JarFileResourceLoader(final Resource resource) throws IOException Construct a new instance from a JAR file contained within a resource.
| |
| 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. | |
| manifest | back to summary |
|---|---|
| public Manifest manifest() throws IOException Overrides default io. Doc from io. 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.
| |