public class ResourceUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
log |
| Constructor and Description |
|---|
ResourceUtils() |
| Modifier and Type | Method and Description |
|---|---|
static InputStream |
getResource(String filename)
Use ClassLoader.getResource to get the named resource
|
static InputStream |
getResourceViaProperty(String propName,
String defaultPath)
Get this resource from the location specified in docx4j.properties;
if none is specified, fallback to the default specified
|
public static InputStream getResourceViaProperty(String propName, String defaultPath) throws IOException
propName - defaultPath - IOExceptionpublic static InputStream getResource(String filename) throws IOException
filename - IOException - if resource not foundCopyright © 2007-2022. All Rights Reserved.