public class ConfigWriter
extends java.lang.Object
| Modifier and Type | Class and Description | 
|---|---|
| static class  | ConfigWriter.ModuleInfo | 
| Constructor and Description | 
|---|
| ConfigWriter(java.io.File file,
            ConfigWindow parent)Constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | writeFile(java.util.List<ConfigWriter.ModuleInfo> modules,
         java.util.List<java.lang.String> handlers,
         java.io.File homeDir,
         java.io.File tempDir,
         java.lang.String encoding,
         int bufferSize)Writes out the content of the file to the temporary file,
   then deletes the existing configuration file (as specified 
   by the constructor parameter) and renames the temporary file 
   to the configuration file. | 
public ConfigWriter(java.io.File file,
            ConfigWindow parent)
             throws java.io.IOException
file, it will not be replaced or overwritten
  until writeFile has successfully written out
  the temporary file.file - Location of the configuration fileparent - The ConfigWindow which invoked this instance.
                  May be null if invoked to write a default config file.java.io.IOExceptionpublic void writeFile(java.util.List<ConfigWriter.ModuleInfo> modules, java.util.List<java.lang.String> handlers, java.io.File homeDir, java.io.File tempDir, java.lang.String encoding, int bufferSize) throws java.io.IOException
java.io.IOException