org.archiviststoolkit.importer.MARCXML
Class MARCImportHandler

java.lang.Object
  extended by org.archiviststoolkit.importer.ImportHandler
      extended by org.archiviststoolkit.importer.MARCXML.MARCImportHandler
All Implemented Interfaces:
java.lang.Runnable

public class MARCImportHandler
extends ImportHandler


Field Summary
 
Fields inherited from class org.archiviststoolkit.importer.ImportHandler
file, importController
 
Constructor Summary
MARCImportHandler(ImportOptionsMARC importOptions)
          Constructor.
 
Method Summary
 boolean canImportFile(java.io.File file)
          Can we import this file.
 boolean importFile(java.io.File file, DomainImportController domainController, InfiniteProgressPanel progressPanel)
          Import the file.
 
Methods inherited from class org.archiviststoolkit.importer.ImportHandler
getFile, getImportController, getInitialChunk, run, startImportThread
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MARCImportHandler

public MARCImportHandler(ImportOptionsMARC importOptions)
Constructor.

Method Detail

canImportFile

public boolean canImportFile(java.io.File file)
Description copied from class: ImportHandler
Can we import this file.

Specified by:
canImportFile in class ImportHandler
Parameters:
file - the file to import.
Returns:
can we.

importFile

public boolean importFile(java.io.File file,
                          DomainImportController domainController,
                          InfiniteProgressPanel progressPanel)
                   throws ImportException
Description copied from class: ImportHandler
Import the file.

Specified by:
importFile in class ImportHandler
Parameters:
file - the file to import.
domainController - the controller to use.
Returns:
if we succeded
Throws:
ImportException