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