org.pf.settings.rw
Class HttpdConfReaderWriter

java.lang.Object
  extended byorg.pf.settings.rw.AbstractSettingsReaderWriter
      extended byorg.pf.settings.rw.AbstractSettingsFileReaderWriter
          extended byorg.pf.settings.rw.HttpdConfReaderWriter
All Implemented Interfaces:
SettingsFileReader, SettingsReader, SettingsWriter

public class HttpdConfReaderWriter
extends AbstractSettingsFileReaderWriter

This reader can read Apache httpd.conf files into a MultiValueSettings object.

Storing such settings is not yet supported!

Version:
1.1
Author:
Manfred Duchrow

Constructor Summary
HttpdConfReaderWriter()
          Initialize the new instance with default values.
HttpdConfReaderWriter(FileLocator locator)
          Initialize the new instance with a file locator.
HttpdConfReaderWriter(java.lang.String filename)
          Initialize the new instance with a file name.
 
Method Summary
 boolean storeSettings(Settings settings)
          Stores the given settings to the file with this object's filename in the format of Windows ini files.
 
Methods inherited from class org.pf.settings.rw.AbstractSettingsFileReaderWriter
getEncoding, getFileName, loadSettings, loadSettingsFrom, loadSettingsFrom, loadSettingsFrom, loadSettingsFrom, setEncoding, setFileName
 
Methods inherited from class org.pf.settings.rw.AbstractSettingsReaderWriter
loadSettings
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.pf.settings.SettingsReader
loadSettings
 

Constructor Detail

HttpdConfReaderWriter

public HttpdConfReaderWriter()
Initialize the new instance with default values.


HttpdConfReaderWriter

public HttpdConfReaderWriter(java.lang.String filename)
Initialize the new instance with a file name.


HttpdConfReaderWriter

public HttpdConfReaderWriter(FileLocator locator)
Initialize the new instance with a file locator.

Method Detail

storeSettings

public boolean storeSettings(Settings settings)
Stores the given settings to the file with this object's filename in the format of Windows ini files.

NOT YET IMPLEMENTED

Parameters:
settings - The settings to store
Returns:
true, if the settings have been successfully stored. Otherwise false.