public class EntityLinkerProperties extends Object
| Constructor and Description |
|---|
EntityLinkerProperties(File propertiesfile)
Constructor takes location of properties file as arg
|
EntityLinkerProperties(InputStream propertiesIn) |
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 © 2015 The Apache Software Foundation. All rights reserved.