net.fortuna.ical4j.util
Class ResourceLoader
java.lang.Object
net.fortuna.ical4j.util.ResourceLoader
public class ResourceLoader
- extends Object
- Author:
- fortuna
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceLoader
public ResourceLoader()
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
Copyright © 2004-2012 Micronode. All Rights Reserved.