|
||||||||||
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 Properties |
loadProperties(String resourceName,
boolean failIfNotFound)
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static InputStream loadResource(String resourceName) throws IOException
resourceName
- The resource to try and load.
IOException
- If there is an error while attempting to load the resource.public static Properties loadProperties(String resourceName, boolean failIfNotFound) throws IOException
resourceName
- The resource to try and load.failIfNotFound
- Throw an error message if the properties were not found.
IOException
- If there is an error loading the properties.public static Properties loadProperties(String resourceName, Properties defaults) throws IOException
resourceName
- The resource to try and load.defaults
- A stream of default properties.
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 |