|
||||||||||
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
Imports data from a CD (or harddisk) location into the insert table of the owner module
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, 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 |
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.Method Detail |
public void run()
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 |