public class ConfigWriter extends Object
Constructor and Description |
---|
ConfigWriter(File file,
ConfigWindow parent)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
writeFile(List<ModuleInfo> modules,
List<String[]> handlers,
File homeDir,
File tempDir,
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(File file, ConfigWindow parent) throws 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.IOException
public void writeFile(List<ModuleInfo> modules, List<String[]> handlers, File homeDir, File tempDir, String encoding, int bufferSize) throws IOException
IOException
Copyright © 2008–2017 The Open Preservation Foundation. All rights reserved.