ch.claudio.contactdb
Class LicqImporter

java.lang.Object
  extended by ch.claudio.contactdb.LicqImporter
All Implemented Interfaces:
Importer

public class LicqImporter
extends java.lang.Object
implements Importer

Import history files written by the licq program.

Note: Today licq supports more than just ICQ. As I stopped using licq before that change I do not know if logs from e.g. MSN chats differ and thus might not be recognized by this importer.

Version:
$Id: LicqImporter.java 181 2007-04-18 14:53:43Z claudio $
Author:
Claudio Nieder

Nested Class Summary
 
Nested classes/interfaces inherited from interface ch.claudio.contactdb.Importer
Importer.HandleStatus
 
Constructor Summary
LicqImporter(Model m)
           
 
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.
static void main(java.lang.String[] args)
          Print license.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LicqImporter

public LicqImporter(Model m)
Parameters:
m - Model to be used to store the data.
Method Detail

canHandle

public Importer.HandleStatus canHandle(java.io.File file)
Description copied from interface: Importer
Inspects the file or directory and judges to what extent it can handle it.

Specified by:
canHandle in interface Importer
Parameters:
file - File or Directory to inspect
Returns:
an indication to what extent the file or directory can be handled.
See Also:
Importer.canHandle(java.io.File)

read

public void read(java.io.File file)
Description copied from interface: Importer
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.

Specified by:
read in interface Importer
Parameters:
file - or directory to handle
See Also:
Importer.read(java.io.File)

getName

public java.lang.String getName()
Description copied from interface: Importer
Return a localized display name for this importer.

Specified by:
getName in interface Importer
Returns:
importer name
See Also:
Importer.getName()

main

public static void main(java.lang.String[] args)
Print license.

Parameters:
args - ignored