ch.claudio.contactdb
Interface Importer

All Known Implementing Classes:
GaimImporter, LicqImporter

public interface Importer

The basic functionalities an importer class has to implement.

Version:
$Id: Importer.java 32 2006-07-10 23:51:07Z $
Author:
Claudio Nieder

Nested Class Summary
static class Importer.HandleStatus
           
 
Method Summary
 Importer.HandleStatus canHandle(java.io.File file)
          Inspects the file or directory and judges to what extent it can handle it.
 java.lang.String getName()
          Return a localized display name for this importer.
 void read(java.io.File file)
          If the argument is a file, it reads the content of the file and stores the information it can retrieve.
 

Method Detail

canHandle

Importer.HandleStatus canHandle(java.io.File file)
Inspects the file or directory and judges to what extent it can handle it.

Parameters:
file - File or Directory to inspect
Returns:
an indication to what extent the file or directory can be handled.

read

void read(java.io.File file)
If the argument is a file, it reads the content of the file and stores the information it can retrieve.

If the argument is a directory, recursively inspect all files and extract as much information as possible and store it in the database.

Parameters:
file - or directory to handle

getName

java.lang.String getName()
Return a localized display name for this importer.

Returns:
importer name