public class ResourceUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static InputStream |
getResource(Class<?> base,
String name)
Returns the specified resource as input stream.
|
public static InputStream getResource(Class<?> base, 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 resourceIllegalArgumentException - if the resource cannot be found or readCopyright © 2025. All rights reserved.