public class Properties extends Properties
defaults
Constructor and Description |
---|
Properties()
Default constructor.
|
Properties(Properties defaultConfig)
Constructor called when "pipeline.defaultProps" contains a valid file-path
|
Modifier and Type | Method and Description |
---|---|
protected static Properties |
buildConfig(File propFile)
Recursive method handles nested default Config files.
|
protected static File |
getDefaultConfig(File propFile)
Parse property file for the property "pipeline.defaultProps".
|
protected void |
load(FileInputStream fis)
Load properties, adding escape characters where necessary.
|
static Properties |
loadProperties(File file)
Instantiate
Properties via buildConfig(File) |
protected static Properties |
readProps(File propFile,
Properties defaultProps)
Read the properties defined in the required propFile and defaultProps (if included) to build Config.
Properties in propFile will override the defaultProps. |
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNames
clear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keys, keySet, merge, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, size, toString, values
public Properties()
public Properties(Properties defaultConfig)
defaultConfig
- Config built from "pipeline.defaultProps" propertyprotected void load(FileInputStream fis) throws IOException
fis
- FileInputStreamIOException
- if unable to convert escape characterspublic static Properties loadProperties(File file) throws Exception
Properties
via buildConfig(File)
file
- of Properties
fileException
- if unable to extract properties from filePathprotected static Properties buildConfig(File propFile) throws Exception
propFile
- BioLockJ Configuration fileException
- if errors occurprotected static File getDefaultConfig(File propFile) throws Exception
propFile
- BioLockJ Config fileException
- if errors occurprotected static Properties readProps(File propFile, Properties defaultProps) throws FileNotFoundException, IOException
propFile
- BioLockJ configuration filedefaultProps
- Default propertiesProperties
instanceFileNotFoundException
- thrown if propFile is not a valid file pathIOException
- thrown if propFile or defaultProps cannot be parsed to read in properties