uk.me.parabola.mkgmap
Class Options
java.lang.Object
uk.me.parabola.mkgmap.Options
public class Options
- extends java.lang.Object
Holds and reads options. Like a properties file, but order is important
and events are generated when options are read.
You can use the normal option syntax foo=bar.
You can also use foo: bar and for longer options that
span several lines foo { this can span lines }
- Author:
- Steve Ratcliffe
Method Summary |
void |
readOptionFile(java.io.Reader r,
java.lang.String filename)
|
void |
readOptionFile(java.lang.String filename)
Read a config file that contains more options. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Options
public Options(OptionProcessor proc)
readOptionFile
public void readOptionFile(java.lang.String filename)
throws java.io.IOException
- Read a config file that contains more options. When the number of
options becomes large it is more convenient to place them in a file.
If the same file is read more than once, then the second time
will be ignored.
- Parameters:
filename
- The filename to obtain options from.
- Throws:
java.io.IOException
readOptionFile
public void readOptionFile(java.io.Reader r,
java.lang.String filename)