jwo.landserf.process
Class OpenThread
java.lang.Object
java.lang.Thread
jwo.landserf.process.LSThread
jwo.landserf.process.OpenThread
- All Implemented Interfaces:
- Runnable
- public class OpenThread
- extends LSThread
Opens a spatial file and places contents into a spatial object.
- Version:
- 2.1, 3rd September, 2004.
- Author:
- Jo Wood
Constructor Summary |
OpenThread(GISFrame gisFrame,
File[] inFiles)
Attempts to open the relevant spatial object file(s). |
OpenThread(GISFrame gisFrame,
File[] inFiles,
int fileType,
int position)
Opens the relevant spatial object file(s). |
Method Summary |
void |
doProcessing()
Opens the spatial object file requested. |
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 |
OpenThread
public OpenThread(GISFrame gisFrame,
File[] inFiles)
- Attempts to open the relevant spatial object file(s). Guesses the file type by
the extension of the file name. Note that this is not reliable for several of
the file types that share the same extension (e.g. .txt).
- Parameters:
gisFrame
- Frame holding spatial objects and in which to report results.inFiles
- File(s) to open.
OpenThread
public OpenThread(GISFrame gisFrame,
File[] inFiles,
int fileType,
int position)
- Opens the relevant spatial object file(s).
- Parameters:
gisFrame
- Frame holding spatial objects and in which to report results.inFiles
- File(s) to open.fileType
- Type of file to open.position
- Raster selection type. Either GISFrame.PRIMARY, GISFrame.SECONDARY, GISFrame.NOT_SELECTED.
doProcessing
public void doProcessing()
- Opens the spatial object file requested.
- Specified by:
doProcessing
in class LSThread
Copyright Jo Wood, 1996-2004, last modified, 3rd September, 2004