Resource
Resource file manager.
Type members
Classlikes
A virtual file implementation for file resources contained in a JAR file
A virtual file implementation for file resources contained in a JAR file
A virtual file implementation for usual files
A virtual file implementation for usual files
VirtualFile is a common interface to handle system files and file resources in JAR.
VirtualFile is a common interface to handle system files and file resources in JAR.
System file resources have an URL prefixed with "file:". e.g., "file:/C:/Program Files/Software/classes/org/xerial/util/FileResource.java" JAR file contents have an URL prefixed with "jar:file: e.g., "jar:file:/C:/Program Files/Software/something.jar!/org/xerial/util/FileResource.java"
Value members
Concrete methods
Finds the java.net.URL of the resource
Finds the java.net.URL of the resource
- Value parameters:
- packageName
the base package name to find the resource
- resourceFileName
the resource file name relative to the package folder
- Returns:
the URL of the specified resource
Find resource URLs that can be found from a given class loader and its ancestors
Find resource URLs that can be found from a given class loader and its ancestors
- Value parameters:
- cl
class loader
- name
resource name
Collect resources under the given package
Collect resources under the given package