medi.util
Class File2DbDispatcher

java.lang.Object
  |
  +--medi.util.File2DbDispatcher

public class File2DbDispatcher
extends java.lang.Object

Dispatches a file to a derived class of AbstractFile2Db, if possible. Otherwise, it will perform default operations.


Constructor Summary
File2DbDispatcher()
          Creates new File2DbDispatcher
 
Method Summary
 java.lang.Long process(java.io.File procFile)
          Dispatches a file to be processed.
 void setProvider(Provider pPrv)
          Sets the provider to use.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

File2DbDispatcher

public File2DbDispatcher()
Creates new File2DbDispatcher

Method Detail

setProvider

public void setProvider(Provider pPrv)
Sets the provider to use.

Parameters:
pPrv - The provider to use.

process

public java.lang.Long process(java.io.File procFile)
                       throws DbException
Dispatches a file to be processed.

Parameters:
procFile - The file to be processed.
Returns:
The newly created data ID.
Throws:
DbException - If something goes wrong.