public class ConfigurationPath extends Object
| Constructor and Description |
|---|
ConfigurationPath(Path appConfig,
Path userConfig)
Configuration class constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Path |
getConfig(String name)
Search configuration file first from userConfig and then appConfig directory.
|
Path |
getUserConfig(String name)
Search configuration file from userConfig directory.
|
Path |
getUserConfig(String name,
boolean create)
Search configuration file from userConfig directory.
|
public Path getConfig(String name)
name - Configuration file name.public Path getUserConfig(String name) throws IOException
name - Configuration file name.IOException - When we do not have read access to the file or directory.public Path getUserConfig(String name, boolean create) throws IOException
name - Configuration file namecreate - When true configuration file is created if not found.IOException - When we do not have read/write access to the file or directory.Copyright © 2020. All rights reserved.