public class EntityLinkerProperties
extends java.lang.Object
| Constructor and Description |
|---|
EntityLinkerProperties(java.io.File propertiesfile)
Constructor takes location of properties file as arg
|
EntityLinkerProperties(java.io.InputStream propertiesIn) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getProperty(java.lang.String key,
java.lang.String defaultValue)
Gets a property from the props file.
|
public EntityLinkerProperties(java.io.File propertiesfile)
throws java.io.IOException
propertiesfile - the properties filejava.io.IOExceptionpublic EntityLinkerProperties(java.io.InputStream propertiesIn)
throws java.io.IOException
propertiesIn - inputstream of properties file. Stream will not be
closedjava.io.IOExceptionpublic java.lang.String getProperty(java.lang.String key,
java.lang.String defaultValue)
throws java.io.IOException
key - the key to the desired item in the properties file
(key=value)defaultValue - a default value in case the key, or the value are
missingjava.io.IOException - when the properties object was somehow not initialized properlyCopyright © 2010 - 2020 Adobe. All Rights Reserved