org.apache.fontbox.util
public class ResourceLoader extends Object
Version: $Revision: 1.1 $
Method Summary | |
---|---|
static Properties | loadProperties(String resourceName)
This will attempt to load the resource given the resource name.
|
static Properties | loadProperties(String resourceName, Properties defaults)
This will attempt to load the resource given the resource name.
|
static InputStream | loadResource(String resourceName)
This will attempt to load the resource given the resource name.
|
Parameters: resourceName The resource to try and load.
Returns: The resource as a stream or null if it could not be found.
Throws: IOException If there is an error loading the properties.
Parameters: resourceName The resource to try and load. defaults A stream of default properties.
Returns: The resource as a stream or null if it could not be found.
Throws: IOException If there is an error loading the properties.
Parameters: resourceName The resource to try and load.
Returns: The resource as a stream or null if it could not be found.
Throws: IOException If there is an error while attempting to load the resource.