public class ResourceUtils extends Object
| Constructor and Description |
|---|
ResourceUtils() |
| Modifier and Type | Method and Description |
|---|---|
static InputStream |
getResourceStream(Class<?> clazz,
String filename)
Returns an input stream of a specified resource files, which is contained
within the JAR.
|
static InputStream |
getResourceStream(String filename)
Returns an input stream of a specified resource files, which is contained
within the JAR.
|
public static InputStream getResourceStream(Class<?> clazz, String filename) throws IOException
class - the class file to use as a basefilename - the resource file nameIOExceptionpublic static InputStream getResourceStream(String filename) throws IOException
filename - the resource file nameIOExceptionCopyright © 2021 Fraunhofer SIT. All rights reserved.