public class ResourceUtil extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.io.InputStream |
getResource(java.lang.Class<?> base,
java.lang.String name)
Returns the specified resource as input stream.
|
public static java.io.InputStream getResource(java.lang.Class<?> base, java.lang.String name)
Class.getResourceAsStream(String) falling back to File if
the resource is not found. If neither method succeeds, an exception is
thrown.name - the resource name, a file name or a package relative resourcejava.lang.IllegalArgumentException - if the resource cannot be found or readCopyright © 2021. All Rights Reserved.