be.saltwater.jaqel.settings
Class XMLSettingsWriter

java.lang.Object
  extended bybe.saltwater.jaqel.settings.XMLSettingsWriter
All Implemented Interfaces:
SettingsWriter

public class XMLSettingsWriter
extends java.lang.Object
implements SettingsWriter

Provides support for writing settings to an XML file. The XML file must have the following format:

<settings>
        <setting key="some_path" type="string" write="false" value="/some/path"/>
        <setting key="language" type="string" write="true" value="nl"/>
        ...
</settings>
This format is read by XMLSettingsReader.

Author:
Bruno Windels

Constructor Summary
XMLSettingsWriter(java.lang.String filename)
           
 
Method Summary
 void write(SettingsManager manager)
          Implementation of SettingsWriter.write for this format (XML).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLSettingsWriter

public XMLSettingsWriter(java.lang.String filename)
                  throws java.io.IOException
Parameters:
filename - The filename of the xml file that must be written by this instance.
Method Detail

write

public void write(SettingsManager manager)
Implementation of SettingsWriter.write for this format (XML).

Specified by:
write in interface SettingsWriter