Package net.fortuna.ical4j.util
Class ResourceLoader
java.lang.Object
net.fortuna.ical4j.util.ResourceLoader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic URLgetResource(String name) Load a resource via the thread context classloader.static InputStreamgetResourceAsStream(String name) Load a resource via the thread context classloader.
-
Constructor Details
-
ResourceLoader
public ResourceLoader()
-
-
Method Details
-
getResource
Load a resource via the thread context classloader. If security permissions don't allow this fallback to loading via current classloader.- Parameters:
name- a resource name- Returns:
- a
URLor null if resource is not found
-
getResourceAsStream
Load a resource via the thread context classloader. If security permissions don't allow this fallback to loading via current classloader.- Parameters:
name- a resource name- Returns:
- an
InputStreamor null if resource is not found
-