public class EntityLinkerProperties extends Object
| Constructor and Description | 
|---|
EntityLinkerProperties(File propertiesfile)
Constructor takes location of properties file as arg 
 | 
EntityLinkerProperties(InputStream propertiesIn)  | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
getProperty(String key,
           String defaultValue)
Gets a property from the props file. 
 | 
public EntityLinkerProperties(File propertiesfile) throws IOException
propertiesfile - the properties fileIOExceptionpublic EntityLinkerProperties(InputStream propertiesIn) throws IOException
propertiesIn - inputstream of properties file. Stream will not be
                       closedIOExceptionpublic String getProperty(String key, String defaultValue) throws 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
                     missingIOException - when the  properties object was somehow not initialized properlyCopyright © 2021 The Apache Software Foundation. All rights reserved.