net.named_data.jndn.util
public class ConfigFile extends Object
| Constructor and Description |
|---|
ConfigFile()
Locate, open, and parse a library configuration file.
|
| Modifier and Type | Method and Description |
|---|---|
String |
get(String key,
String defaultValue)
Get the value for the key, or a default value if not found.
|
Map<String,String> |
getParsedConfiguration()
Get the configuration key/value pairs.
|
String |
getPath()
Get the path of the configuration file.
|
public ConfigFile()
throws IOException
IOExceptionpublic final String get(String key, String defaultValue)
key - The key to search for.defaultValue - The default value if the key is not found.public final String getPath()
Copyright © 2016. All rights reserved.