better.files.Resource
See theResource companion object
trait Resource
Finds and loads class resources or class loader resources.
The default implementation of this trait is the Resource object, which looks up resources
using the current thread's context class loader.
The Resource object also offers several other Resource implementations,
through its methods at
, from
, and my
. at
searches from a Class,
from
searches from a ClassLoader,
and my
searches from the class, trait, or object surrounding the call.
Attributes
- See also:
- Example:
// Look up the config.properties file for this class or object. Resource.my.asStream("config.properties") // Find logging.properties (in the root package) somewhere on the classpath. Resource.url("logging.properties")
- Companion:
- object
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
- object Resource.type