|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
net.sf.dc.processes.cdimport.ImportCDProcess
public abstract class ImportCDProcess
Imports data from a CD (or harddisk) location into the insert table of the owner module
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
protected java.lang.String |
cdName
|
protected boolean |
confirmDirs
|
protected boolean |
recursiveDirs
|
protected java.lang.String |
sourceDir
|
protected static WorkFlow |
wf
|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
ImportCDProcess(ImportCDDialog ui,
java.lang.String sourceDir,
boolean confirmDirs,
boolean recursiveDirs,
java.lang.String cdName)
Initializes (but does not run) the CD import process |
Method Summary | |
---|---|
void |
cancel()
|
abstract java.lang.String[] |
getExtensions()
|
protected int |
getFileSize(java.lang.String path)
|
protected abstract int |
getModule()
The UI class which will be updated with the results of the import |
protected java.lang.String |
getName(java.lang.String file)
|
protected abstract DCObject |
parseInformation(java.lang.String sFilename)
Parses the file for its information. |
void |
run()
Starts the CD Import process |
void |
writeOutput(java.util.Collection filenames)
Parses the source files for information and adds the parsed information to the insert table of the owner module. |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, 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 |
Field Detail |
---|
protected static final WorkFlow wf
protected java.lang.String sourceDir
protected boolean confirmDirs
protected boolean recursiveDirs
protected java.lang.String cdName
Constructor Detail |
---|
public ImportCDProcess(ImportCDDialog ui, java.lang.String sourceDir, boolean confirmDirs, boolean recursiveDirs, java.lang.String cdName)
ui
- used for displaying the progresssourceDir
- directory which is used as source for the
importconfirmDirs
- indicates whether for each directory
confirmation should be asked if the underlying data
of this directory should be read or not.nameOfCD
- cd name (used as the location name)Method Detail |
---|
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public abstract java.lang.String[] getExtensions()
protected int getFileSize(java.lang.String path)
public void cancel()
public void writeOutput(java.util.Collection filenames)
filenames
- files to be parsedprotected java.lang.String getName(java.lang.String file)
protected abstract DCObject parseInformation(java.lang.String sFilename)
sFilename
- file to be parsedprotected abstract int getModule()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |