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

Variable Index

 o cancelled
A flag which indicates whether the write has been cancelled.
 o config
The configuration that is being saved.
 o eof
A flag which indicates whether the write operation is done.
 o fatalErrList
A list of fatal errors that were encountered.
 o writer
A writer for the output file.

Constructor Index

 o ConfigWriter(FileWriter, VisiConfig)
Constructs a configuration writer.

Method Index

 o cancel()
Cancel the operation.
 o getEOF()
Checks whether the write is done.
 o getFatalErrors()
Get a list of the fatal errors that were encountered.
 o getWarnings()
Get a list of the warnings that were encountered (always null).
 o isCancelled()
Checks whether the write was cancelled.
 o run()
Main line code.

Variables

 o writer
 private FileWriter writer
A writer for the output file.

 o config
 private VisiConfig config
The configuration that is being saved.

 o cancelled
 private Boolean cancelled
A flag which indicates whether the write has been cancelled.

 o eof
 private boolean eof
A flag which indicates whether the write operation is done.

 o fatalErrList
 private Vector fatalErrList
A list of fatal errors that were encountered.

Constructors

 o 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.

Methods

 o cancel
 public void cancel()
Cancel the operation.

 o isCancelled
 public boolean isCancelled()
Checks whether the write was cancelled.

Returns:
true if the write was cancelled; false otherwise.
 o getEOF
 public boolean getEOF()
Checks whether the write is done.

Returns:
true if the write is complete; false otherwise.
 o getFatalErrors
 public Vector getFatalErrors()
Get a list of the fatal errors that were encountered.

Returns:
a vector of error messages.
 o getWarnings
 public Vector getWarnings()
Get a list of the warnings that were encountered (always null).

Returns:
always returns null.
 o run
 public void run()
Main line code.

Overrides:
run in class Thread