Class ResourceUtil
java.lang.Object
com.itextpdf.io.util.ResourceUtil
This file is a helper class for internal usage only.
Be aware that its API and functionality may be changed in future.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic InputStreamgetResourceStream(String key) Gets the resource's inputstream.static InputStreamgetResourceStream(String key, ClassLoader loader) Gets the resource's inputstream.
-
Constructor Details
-
ResourceUtil
private ResourceUtil()
-
-
Method Details
-
getResourceStream
Gets the resource's inputstream.- Parameters:
key- the full name of the resource.- Returns:
- the
InputStreamto get the resource ornullif not found.
-
getResourceStream
Gets the resource's inputstream.- Parameters:
key- the full name of the resource.loader- the ClassLoader to load the resource or null to try the ones available.- Returns:
- the
InputStreamto get the resource ornullif not found.
-