public class ResourceUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
RESOURCE_BASE_PATH |
Constructor and Description |
---|
ResourceUtils() |
Modifier and Type | Method and Description |
---|---|
static URL |
getPluginResource(String internalResourcePath)
Gets a plugin-internal resource as URL
If you want to utilize resources from your Java extension, use
JIPipeResourceManager |
static InputStream |
getPluginResourceAsStream(String internalResourcePath)
Gets a plugin-internal resource as Stream
|
static String |
getPluginResourceAsString(String internalResourcePath)
Gets a plugin resource as string
|
static URL |
getPluginResourceInverted(String internalResourcePath)
Gets a plugin-internal resource as URL
If you want to utilize resources from your Java extension, use
JIPipeResourceManager |
static String |
getResourceBasePath() |
static String |
getResourcePath(String internalResourcePath)
Gets an internal resource.
|
static Set<String> |
walkInternalResourceFolder(String folder)
Iterates through all internal resources and
|
public static final String RESOURCE_BASE_PATH
public static String getResourceBasePath()
public static String getResourcePath(String internalResourcePath)
JIPipeResourceManager
internalResourcePath
- the internal pathpublic static URL getPluginResource(String internalResourcePath)
JIPipeResourceManager
internalResourcePath
- internal pathpublic static URL getPluginResourceInverted(String internalResourcePath)
JIPipeResourceManager
internalResourcePath
- internal pathpublic static String getPluginResourceAsString(String internalResourcePath)
internalResourcePath
- internal pathpublic static InputStream getPluginResourceAsStream(String internalResourcePath)
internalResourcePath
- internal pathCopyright © 2020–2022 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.