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 fileIOException
public EntityLinkerProperties(InputStream propertiesIn) throws IOException
propertiesIn
- inputstream of properties file. Stream will not be
closedIOException
public 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 © 2017 The Apache Software Foundation. All rights reserved.