Top Fields Constructors Methods
net.fortuna.ical4j.util

public Class ResourceLoader

extends Object
Class Inheritance
Imports
org.slf4j.Logger, .LoggerFactory, java.io.InputStream, java.net.URL

Author
fortuna

Field Summary

Modifier and TypeField and Description
private static final Logger

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static URL

Returns:

a URL or null if resource is not found
getResource
(String
a resource name
name
)

Load a resource via the thread context classloader.

public static InputStream

Returns:

an InputStream or null if resource is not found
getResourceAsStream
(String
a resource name
name
)

Load a resource via the thread context classloader.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

LOGback to summary
private static final Logger LOG

Constructor Detail

ResourceLoaderback to summary
public ResourceLoader()

Method Detail

getResourceback to summary
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:String

a resource name

Returns:URL

a URL or null if resource is not found

getResourceAsStreamback to summary
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:String

a resource name

Returns:InputStream

an InputStream or null if resource is not found