public class INIConfiguration extends java.lang.Object implements ConfigurationIF
| Constructor and Description |
|---|
INIConfiguration()
The constructor.
|
INIConfiguration(java.lang.String iniFile)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
org.w3c.dom.Document |
getDocument()
Get the XML document, that describes the contents.
|
java.lang.String |
getType()
Get the type of the configuration.
|
static void |
main(java.lang.String[] args)
The main testing routine.
|
protected org.w3c.dom.Document |
read()
Parse the file.
|
protected static void |
write(java.io.PrintStream out,
org.w3c.dom.Comment comment)
write out an comment
|
static void |
write(java.io.PrintStream out,
org.w3c.dom.Document doc)
Save a document to file.
|
protected static void |
write(java.io.PrintStream out,
org.w3c.dom.Element elem)
write out an element
|
public INIConfiguration()
public INIConfiguration(java.lang.String iniFile)
public org.w3c.dom.Document getDocument()
throws java.lang.Exception
getDocument in interface ConfigurationIFjava.lang.Exceptionpublic java.lang.String getType()
throws java.lang.Exception
getType in interface ConfigurationIFjava.lang.Exceptionprotected org.w3c.dom.Document read()
throws java.io.FileNotFoundException,
java.io.IOException
java.io.FileNotFoundExceptionjava.io.IOExceptionprotected static void write(java.io.PrintStream out,
org.w3c.dom.Comment comment)
protected static void write(java.io.PrintStream out,
org.w3c.dom.Element elem)
public static void write(java.io.PrintStream out,
org.w3c.dom.Document doc)
public static void main(java.lang.String[] args)
args - The runtime parameters.