public interface ResourceProvider
| Modifier and Type | Method and Description |
|---|---|
File |
getResourceAsFile(String resourceName)
Retrieve a resource as a
File |
InputStream |
getResourceAsStream(String resourceName)
Retrieve a resource as an
InputStream |
ResourceBundle |
getResourceBundle(String name,
Locale locale)
Retrieve a
ResourceBundle that can be used for localization. |
String |
getResourceURL(String resourceName)
Retrieve a resource URL
|
InputStream getResourceAsStream(String resourceName) throws FileNotFoundException
InputStreamresourceName - the name of the resource to retrieve. It can be a path.InputStream for this resourceFileNotFoundExceptionFile getResourceAsFile(String resourceName)
FileresourceName - the name of the resource to retrieve. It can be a path.File for this resourceString getResourceURL(String resourceName)
resourceName - the name of the resource to retrieve. It can be a path.ResourceBundle getResourceBundle(String name, Locale locale)
ResourceBundle that can be used for localization.name - the name of the resource to retrieve (e.g. : messages for a resource named messages_fr.properties)locale - the Locale of the ResourceBundle to retrieve.(e.g. : Locale.FRENCH for a resource named messages_fr.properties)ResourceBundle for given name and LocaleCopyright © 2020 Bonitasoft S.A.. All rights reserved.