|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.archiviststoolkit.importer.ImportHandler
public abstract class ImportHandler
Base class for all import handlers.
Field Summary | |
---|---|
java.io.File |
file
the file to import. |
DomainImportController |
importController
the domain controller to use. |
Constructor Summary | |
---|---|
ImportHandler()
|
Method Summary | |
---|---|
abstract boolean |
canImportFile(java.io.File importFile)
Can we import this file. |
java.io.File |
getFile()
Get the file to use. |
DomainImportController |
getImportController()
Get the domaincontroller to use. |
java.lang.String |
getInitialChunk(java.io.File importFile)
Get the initial file chunk (32 bytes). |
abstract boolean |
importFile(java.io.File importFile,
DomainImportController controller,
InfiniteProgressPanel progressPanel)
Import the file. |
void |
run()
The import thread run method. |
boolean |
startImportThread(java.io.File importFile,
DomainImportController controller)
Kick off the import thread. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.io.File file
public DomainImportController importController
Constructor Detail |
---|
public ImportHandler()
Method Detail |
---|
public java.io.File getFile()
public DomainImportController getImportController()
public abstract boolean canImportFile(java.io.File importFile)
importFile
- the file to import.
public abstract boolean importFile(java.io.File importFile, DomainImportController controller, InfiniteProgressPanel progressPanel) throws ImportException
importFile
- the file to import.controller
- the controller to use.progressPanel
-
ImportException
public boolean startImportThread(java.io.File importFile, DomainImportController controller)
importFile
- the file to importcontroller
- the controller to use.
public void run()
run
in interface java.lang.Runnable
public java.lang.String getInitialChunk(java.io.File importFile)
importFile
- the file to import
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |