public class ResourceUtils extends Object
| 构造器和说明 |
|---|
ResourceUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
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 © 2022 Fraunhofer SIT. All rights reserved.