public interface ResourceHandler
| Modifier and Type | Method and Description |
|---|---|
java.lang.ClassLoader |
classloader()
Returns the classloader used to resolve resources.
|
java.io.InputStream |
getResourceAsStream(java.lang.String name)
Returns an input stream for reading the specified resource.
|
java.net.URL |
getResourceAsURL(java.lang.String name)
Finds the resource with the given name.
|
java.util.List<java.net.URL> |
getResources(java.lang.String name)
Finds all the resources with the given name.
|
@Nullable
java.net.URL getResourceAsURL(@Nonnull
java.lang.String name)
The name of a resource is a '/'-separated path name that identifies the resource.
name - The resource name@Nullable
java.io.InputStream getResourceAsStream(@Nonnull
java.lang.String name)
name - The resource name@Nullable
java.util.List<java.net.URL> getResources(@Nonnull
java.lang.String name)
The name of a resource is a /-separated path name that identifies the resource.
name - The resource nameURL objects for
the resource. If no resources could be found, the list
will be empty. Resources that the class loader doesn't have
access to will not be in the list.@Nonnull java.lang.ClassLoader classloader()