|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pdfbox.util.ResourceLoader
public class ResourceLoader
This class will handle loading resource files(AFM/CMAP).
Method Summary | |
---|---|
static java.util.Properties |
loadProperties(java.lang.String resourceName,
boolean failIfNotFound)
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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, boolean failIfNotFound) throws java.io.IOException
resourceName
- The resource to try and load.failIfNotFound
- Throw an error message if the properties were not found.
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |