Class ConfigWriter
java.lang.Object
|
+----java.lang.Thread
|
+----ConfigWriter
- public class ConfigWriter
- extends Thread
Class definition for an object that will write a configuration
to a file.
- Version:
- $Revision: 1.5 $, $Date: 2000/10/12 14:07:48 $
- Author:
- John Cavanaugh
-
cancelled
- A flag which indicates whether the write has been cancelled.
-
config
- The configuration that is being saved.
-
eof
- A flag which indicates whether the write operation is done.
-
fatalErrList
- A list of fatal errors that were encountered.
-
writer
- A writer for the output file.
-
ConfigWriter(FileWriter, VisiConfig)
- Constructs a configuration writer.
-
cancel()
- Cancel the operation.
-
getEOF()
- Checks whether the write is done.
-
getFatalErrors()
- Get a list of the fatal errors that were encountered.
-
getWarnings()
- Get a list of the warnings that were encountered (always null).
-
isCancelled()
- Checks whether the write was cancelled.
-
run()
- Main line code.
writer
private FileWriter writer
- A writer for the output file.
config
private VisiConfig config
- The configuration that is being saved.
cancelled
private Boolean cancelled
- A flag which indicates whether the write has been cancelled.
eof
private boolean eof
- A flag which indicates whether the write operation is done.
fatalErrList
private Vector fatalErrList
- A list of fatal errors that were encountered.
ConfigWriter
public ConfigWriter(FileWriter writer,
VisiConfig config)
- Constructs a configuration writer.
- Parameters:
- writer - a writer for the output file.
- config - the configuration that is being saved.
cancel
public void cancel()
- Cancel the operation.
isCancelled
public boolean isCancelled()
- Checks whether the write was cancelled.
- Returns:
- true if the write was cancelled; false otherwise.
getEOF
public boolean getEOF()
- Checks whether the write is done.
- Returns:
- true if the write is complete; false otherwise.
getFatalErrors
public Vector getFatalErrors()
- Get a list of the fatal errors that were encountered.
- Returns:
- a vector of error messages.
getWarnings
public Vector getWarnings()
- Get a list of the warnings that were encountered (always null).
- Returns:
- always returns null.
run
public void run()
- Main line code.
- Overrides:
- run in class Thread