Loads key/value pairs from a resource file of specified name associated with a class.
Loads key/value pairs from a resource file of specified name associated with a class.
The resource is looked up under the modified package name of the given class (i.e., with '/' substituted for '.'), unless the resource name begins with a '/', in which case it is looked up under the resource name itself (stripping the leading '/').
the class for which the resource shall be got
the name of the desired resource
a Config
with key/value pairs loaded from the given resource file
If some I/O or other exception occurs when loading the file, the
resulting Config
is empty.
The content of the file must conform to the
java.util.Properties#load(InputStream)
method.
the file from which the key/value pairs are loaded from
a Config
with key/value pairs loaded from a single properties file
If some I/O or other exception occurs when loading the file, the
resulting Config
is empty.
The content of the file must conform to the
java.util.Properties#load(InputStream)
method.