public class ResourceLoader
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.util.Properties |
loadProperties(java.lang.String resourceName)
This will attempt to load the resource given the resource name.
|
static java.util.Properties |
loadProperties(java.lang.String resourceName,
java.util.Properties defaults)
This will attempt to load the resource given the resource name.
|
static java.io.InputStream |
loadResource(java.lang.String resourceName)
This will attempt to load the resource given the resource name.
|
public static java.io.InputStream loadResource(java.lang.String resourceName) throws java.io.IOException
resourceName
- The resource to try and load.java.io.IOException
- If there is an error while attempting to load the resource.public static java.util.Properties loadProperties(java.lang.String resourceName) throws java.io.IOException
resourceName
- The resource to try and load.java.io.IOException
- If there is an error loading the properties.public static java.util.Properties loadProperties(java.lang.String resourceName, java.util.Properties defaults) throws java.io.IOException
resourceName
- The resource to try and load.defaults
- A stream of default properties.java.io.IOException
- If there is an error loading the properties.