public class ConfigFileReader extends ConfigProcessor
PropertiesView
object via
propertiesViewFromArgs(java.lang.String[], int, int)
.Modifier and Type | Field and Description |
---|---|
protected static java.util.regex.Pattern |
_callPattern |
protected java.util.HashSet<java.lang.String> |
_includeHs |
protected static java.util.regex.Pattern |
_includePattern |
protected static java.util.regex.Pattern |
_nonLinePattern |
_nameToParam, _paramAl, _paramPattern, _sourceDesc
Constructor and Description |
---|
ConfigFileReader(java.io.File file) |
ConfigFileReader(java.io.File[] files)
Constructor.
|
ConfigFileReader(java.lang.String[] fileNames)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static ConfigFileReader |
fromArgs(java.lang.String[] args,
int minConfigFileQty,
int maxConfigFileQty)
Initialises an instance from an array of configuration file names.
|
static PropertiesView |
propertiesViewFromArgs(java.lang.String[] args,
int minConfigFileQty,
int maxConfigFileQty)
Initialises a PropertiesView object from an array of configuration files.
|
static PropertiesView |
propertiesViewFromFile(java.io.File file) |
evaluateExpression, getValue, makeAnnotatedConfigString, makeConfigString, makeProperties, makePropertiesView, makeTrace, tryParam
protected static final java.util.regex.Pattern _includePattern
protected static final java.util.regex.Pattern _callPattern
protected static final java.util.regex.Pattern _nonLinePattern
protected java.util.HashSet<java.lang.String> _includeHs
public ConfigFileReader(java.io.File file) throws ReadException
ReadException
public ConfigFileReader(java.lang.String[] fileNames) throws ReadException
fileNames
- Names of the files from which configuration is to be read.ConfigException
ReadException
public ConfigFileReader(java.io.File[] files) throws ReadException
files
- The files from which configuration is to be read.ReadException
public static ConfigFileReader fromArgs(java.lang.String[] args, int minConfigFileQty, int maxConfigFileQty) throws ReadException
args
- Contains the names of the configuration files. Typically,
they will come from the command line arguments.minConfigFileQty
- throws ReadException if args.length is less than thismaxConfigFileQty
- throws ReadException if args.length is more than thisReadException
public static PropertiesView propertiesViewFromArgs(java.lang.String[] args, int minConfigFileQty, int maxConfigFileQty) throws ReadException
args
- Contains the names of the configuration files. Typically,
they will come from the command line arguments.minConfigFileQty
- throws ReadException if args.length is less than thismaxConfigFileQty
- throws ReadException if args.length is more than thisReadException
public static PropertiesView propertiesViewFromFile(java.io.File file) throws ReadException
ReadException