@ParametersAreNonnullByDefault public class ClassPathResourceLoader extends Object implements ResourceLoader
| Constructor and Description |
|---|
ClassPathResourceLoader() |
| Modifier and Type | Method and Description |
|---|---|
io.atlassian.fugue.Option<URL> |
getResource(com.atlassian.plugin.Plugin plugin,
String resourcePath)
Opens URL to given resource from plugin.
|
io.atlassian.fugue.Option<URL> |
getResource(String resourcePath)
Opens URL to given resource from JIRA Core.
|
io.atlassian.fugue.Option<InputStream> |
getResourceAsStream(com.atlassian.plugin.Plugin plugin,
String resourcePath)
Opens stream to given resource from plugin.
|
io.atlassian.fugue.Option<InputStream> |
getResourceAsStream(String resourcePath)
Opens stream to given resource from JIRA Core.
|
public io.atlassian.fugue.Option<InputStream> getResourceAsStream(String resourcePath)
ResourceLoaderClass.getResourceAsStream(String) for exact
semantics.getResourceAsStream in interface ResourceLoaderresourcePath - path to resourcepublic io.atlassian.fugue.Option<URL> getResource(String resourcePath)
ResourceLoaderClass.getResource(String) for exact semantics.getResource in interface ResourceLoaderresourcePath - path to resourcepublic io.atlassian.fugue.Option<InputStream> getResourceAsStream(com.atlassian.plugin.Plugin plugin, String resourcePath)
ResourceLoaderClass.getResourceAsStream(String) for exact semantics.getResourceAsStream in interface ResourceLoaderresourcePath - path to resourcepublic io.atlassian.fugue.Option<URL> getResource(com.atlassian.plugin.Plugin plugin, String resourcePath)
ResourceLoaderClass.getResource(String) for exact semantics.getResource in interface ResourceLoaderresourcePath - path to resourceCopyright © 2002-2023 Atlassian. All Rights Reserved.