Package org.docx4j.utils
Class ResourceUtils
java.lang.Object
org.docx4j.utils.ResourceUtils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic InputStreamgetResource(String filename) Use ClassLoader.getResource to get the named resourcestatic InputStreamgetResourceViaProperty(String propName, String defaultPath) Get this resource from the location specified in docx4j.properties; if none is specified, fallback to the default specified
-
Field Details
-
log
protected static org.slf4j.Logger log
-
-
Constructor Details
-
ResourceUtils
public ResourceUtils()
-
-
Method Details
-
getResourceViaProperty
public static InputStream getResourceViaProperty(String propName, String defaultPath) throws IOException Get this resource from the location specified in docx4j.properties; if none is specified, fallback to the default specified- Parameters:
propName-defaultPath-- Returns:
- Throws:
IOException- Since:
- 3.2.0
-
getResource
Use ClassLoader.getResource to get the named resource- Parameters:
filename-- Returns:
- Throws:
IOException- if resource not found
-