jwo.landserf.process
Class SaveThread

java.lang.Object
  extended byjava.lang.Thread
      extended byjwo.landserf.process.LSThread
          extended byjwo.landserf.process.SaveThread
All Implemented Interfaces:
JWInterruptionListener, Runnable

public class SaveThread
extends LSThread

Saves the currently selected spatial object in the given format.

Version:
2.2, 26th February, 2005.
Author:
Jo Wood

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
SaveThread(GISFrame gisFrame, String outFile, int fileType)
          Saves the current spatial object (defined in gisFrame) with the given name and in the given format.
SaveThread(GISFrame gisFrame, String outFile, String attribFile, int fileType)
          Saves the current spatial object (defined in gisFrame) with the given name and in the given format.
 
Method Summary
 void doProcessing()
          Does the file conversion and saving.
 
Methods inherited from class jwo.landserf.process.LSThread
checkStoppedThread, interruptionRequested, resetTimer, run, setErrorMessage, setMessage
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SaveThread

public SaveThread(GISFrame gisFrame,
                  String outFile,
                  int fileType)
Saves the current spatial object (defined in gisFrame) with the given name and in the given format.

Parameters:
gisFrame - GISFrame to report results to and get spatial object from.
outFile - Name of file to save.
fileType - Type of file format to save as.

SaveThread

public SaveThread(GISFrame gisFrame,
                  String outFile,
                  String attribFile,
                  int fileType)
Saves the current spatial object (defined in gisFrame) with the given name and in the given format.

Parameters:
gisFrame - GISFrame to report results to and get spatial object from.
outFile - Name of file to save.
attribFile - File to contain attributes.
fileType - Type of file format to save as.
Method Detail

doProcessing

public void doProcessing()
Does the file conversion and saving.

Note that this method will be called automatically if this is run as a threaded process (e.g. mySaveThread.start()). Alternatively it can be called directly as a non-threaded process.

Specified by:
doProcessing in class LSThread
See Also:
GISFrame


Copyright Jo Wood, 1996-2005, last modified, 11th March, 2005