Package net.fortuna.ical4j.util
Class ResourceLoader
- java.lang.Object
-
- net.fortuna.ical4j.util.ResourceLoader
-
public class ResourceLoader extends Object
-
-
Constructor Summary
Constructors Constructor Description ResourceLoader()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static URL
getResource(String name)
Load a resource via the thread context classloader.static InputStream
getResourceAsStream(String name)
Load a resource via the thread context classloader.
-
-
-
Method Detail
-
getResource
public static URL getResource(String name)
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
URL
or null if resource is not found
-
getResourceAsStream
public static InputStream getResourceAsStream(String name)
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
InputStream
or null if resource is not found
-
-