A virtual file implementation for file resources contained in a JAR file
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"
Finds the java.net.URL of the resource
Finds the java.net.URL of the resource
the base package name to find the resource
the resource file name relative to the package folder
the URL of the specified resource
Find a resource from the give absolute path
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
class loader
resource name
Collect resources under the given package
Collect resources under the given package
Open a resource as a stream, then execute the code block using the stream
Open a resource as a stream, then execute the code block using the stream
context class to specify the package containing the resource file
file name
code block
(Since version ) see corresponding Javadoc for more information.
Resource file manager.