Resource
Resource file manager.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Resource.type
Members list
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
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait VirtualFileclass Objecttrait Matchableclass AnyShow all
A virtual file implementation for usual files
A virtual file implementation for usual files
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait VirtualFileclass Objecttrait Matchableclass AnyShow all
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"
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class FileInJarclass SystemFile
Value members
Concrete methods
Find a resource from the give absolute path
Find a resource from the give absolute path
Attributes
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
Attributes
- 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
Attributes
Collect resources under the given package
Collect resources under the given package
Attributes
Collect resources under the given package
Collect resources under the given package
Attributes
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
Value parameters
- body
-
code block
- referenceClass
-
context class to specify the package containing the resource file
- resourceFileName
-
file name