public class ConfigurationParser extends Object
| Constructor and Description |
|---|
ConfigurationParser(File file)
Deprecated.
Temporary code for backward compatibility in Obclipse.
|
ConfigurationParser(File file,
Properties properties)
Creates a new ConfigurationParser for the given file and the given
Properties.
|
ConfigurationParser(String[] args,
File baseDir,
Properties properties)
Creates a new ConfigurationParser for the given String arguments,
with the given base directory and the given Properties.
|
ConfigurationParser(String[] args,
Properties properties)
Creates a new ConfigurationParser for the given String arguments and
the given Properties.
|
ConfigurationParser(String lines,
String description,
File baseDir,
Properties properties)
Creates a new ConfigurationParser for the given lines,
with the given base directory and the given Properties.
|
ConfigurationParser(URL url,
Properties properties)
Creates a new ConfigurationParser for the given URL and the given
Properties.
|
ConfigurationParser(WordReader reader,
Properties properties)
Creates a new ConfigurationParser for the given word reader and the
given Properties.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the configuration.
|
static void |
main(String[] args)
A main method for testing configuration parsing.
|
void |
parse(Configuration configuration)
Parses and returns the configuration.
|
ClassSpecification |
parseClassSpecificationArguments()
Parses and returns a class specification.
|
public ConfigurationParser(String[] args, Properties properties) throws IOException
IOExceptionpublic ConfigurationParser(String[] args, File baseDir, Properties properties) throws IOException
IOExceptionpublic ConfigurationParser(String lines, String description, File baseDir, Properties properties) throws IOException
IOExceptionpublic ConfigurationParser(File file) throws IOException
IOExceptionpublic ConfigurationParser(File file, Properties properties) throws IOException
IOExceptionpublic ConfigurationParser(URL url, Properties properties) throws IOException
IOExceptionpublic ConfigurationParser(WordReader reader, Properties properties) throws IOException
IOExceptionpublic void parse(Configuration configuration) throws ParseException, IOException
configuration - the configuration that is updated as a side-effect.ParseException - if the any of the configuration settings contains
a syntax error.IOException - if an IO error occurs while reading a configuration.public void close()
throws IOException
IOException - if an IO error occurs while closing the configuration.public ClassSpecification parseClassSpecificationArguments() throws ParseException, IOException
ParseException - if the class specification contains a syntax error.IOException - if an IO error occurs while reading the class
specification.public static void main(String[] args)
Copyright © 2015. All Rights Reserved.