Package esmska.persistence
Class ContactParser
- java.lang.Object
-
- javax.swing.SwingWorker<java.util.ArrayList<Contact>,java.lang.Void>
-
- esmska.persistence.ContactParser
-
- All Implemented Interfaces:
java.lang.Runnable,java.util.concurrent.Future<java.util.ArrayList<Contact>>,java.util.concurrent.RunnableFuture<java.util.ArrayList<Contact>>
public class ContactParser extends javax.swing.SwingWorker<java.util.ArrayList<Contact>,java.lang.Void>
Parse contacts from csv file of different programs. Works in background thread. Returns collection of parsed contacts.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classContactParser.ContactTypeTypes of parseable file formats
-
Constructor Summary
Constructors Constructor Description ContactParser(java.io.File file, ContactParser.ContactType type)Creates new ContactParser.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.ArrayList<Contact>doInBackground()
-
-
-
Constructor Detail
-
ContactParser
public ContactParser(java.io.File file, ContactParser.ContactType type)Creates new ContactParser.- Parameters:
file- File to parse.type- Which program was used to save the file.
-
-