public interface

AlternativeResourceLoader

com.atlassian.plugin.util.resource.AlternativeResourceLoader
Known Indirect Subclasses

Class Overview

An alternative resource loader for use by plugins that wish to also support loading resources outside the usual resource loading of the particular plugin type.

Summary

Public Methods
abstract URL getResource(String path)
Retrieve the URL of the resource from the directories.
abstract InputStream getResourceAsStream(String name)
Load a given resource from the directories.

Public Methods

public abstract URL getResource (String path)

Retrieve the URL of the resource from the directories.

Parameters
path the name of the resource to be loaded
Returns
  • The URL to the resource, or null if the resource is not found

public abstract InputStream getResourceAsStream (String name)

Load a given resource from the directories.

Parameters
name The name of the resource to be loaded.
Returns
  • An InputStream for the resource, or null if the resource is not found.