|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
net.datacrow.fileimporters.ImportBatch
public class ImportBatch
The import batch coaches the import process. This is the class that actually should be used to start a file import.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
protected IFileImportClient |
client
|
protected FileImporter |
importer
|
protected java.util.Collection<java.lang.String> |
sources
|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
ImportBatch(IFileImportClient client,
FileImporter importer,
java.util.Collection<java.lang.String> sources)
Creates a new import batch. |
Method Summary | |
---|---|
protected void |
cleanup()
Free resources. |
protected void |
parse(java.util.Collection<java.lang.String> files)
Parse the files and pass the resulted items to the listener. |
protected DcObject |
parse(java.lang.String filename)
Parse a single file. |
void |
run()
|
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, clone, 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 |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected IFileImportClient client
protected FileImporter importer
protected java.util.Collection<java.lang.String> sources
Constructor Detail |
---|
public ImportBatch(IFileImportClient client, FileImporter importer, java.util.Collection<java.lang.String> sources) throws java.lang.Exception
client
- importer
- sources
-
java.lang.Exception
Method Detail |
---|
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
protected void parse(java.util.Collection<java.lang.String> files)
files
- protected void cleanup()
protected DcObject parse(java.lang.String filename)
filename
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |