net.fortuna.ical4j.util
Class ResourceLoader

java.lang.Object
  extended by net.fortuna.ical4j.util.ResourceLoader

public class ResourceLoader
extends Object

Author:
fortuna

Constructor Summary
ResourceLoader()
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceLoader

public ResourceLoader()
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


Copyright © 2004-2012 Micronode. All Rights Reserved.