BrightSide Workbench Full Report + Source Code
org.turro.vcard.util.ImportFromCSV Class Reference

Public Member Functions

 ImportFromCSV ()
 
List< ContactimportCSV () throws IOException
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 35 of file ImportFromCSV.java.

Constructor & Destructor Documentation

◆ ImportFromCSV()

org.turro.vcard.util.ImportFromCSV.ImportFromCSV ( )

Definition at line 37 of file ImportFromCSV.java.

37  {
38  }

Member Function Documentation

◆ importCSV()

List<Contact> org.turro.vcard.util.ImportFromCSV.importCSV ( ) throws IOException

Definition at line 40 of file ImportFromCSV.java.

40  {
41  importCSVRels();
42  List<Contact> clist = new ArrayList<>();
43  CSVList list = VCardFiles.loadCSVs();
44  for(CSVEntry v : list) {
45  Contact c = new CSVToContact(v).getContact();
46  if(c == null) continue;
47  clist.add(c);
48  }
49  for(File f : VCardFiles.getCSVs()) {
50  f.delete();
51  // Can't read more than a single CVS at time, fields may differ
52  break;
53  }
54  return clist;
55  }
Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following file: