18 package org.turro.vcard.util;
20 import a_vcard.android.syncml.pim.vcard.VCardException;
21 import java.awt.image.BufferedImage;
23 import java.io.IOException;
24 import java.net.URLEncoder;
25 import java.util.ArrayList;
26 import java.util.List;
27 import java.util.Properties;
28 import java.util.logging.Level;
29 import java.util.logging.Logger;
30 import org.turro.barcode.Barcode;
31 import org.turro.contacts.Contact;
32 import org.turro.elephant.context.ElephantContext;
33 import org.turro.elephant.impl.util.FileUtil;
34 import org.turro.vcard.ContactToVCard;
35 import org.turro.vcard.VCard;
36 import org.turro.vcard.db.VCardFiles;
37 import org.turro.vcard.db.VCardList;
38 import org.turro.vcard.properties.Version;
46 private List<Contact> contacts;
50 this.contacts = contacts;
54 contacts =
new ArrayList<Contact>();
55 contacts.add(contact);
58 public File
export() throws IOException {
59 Properties properties =
new Properties();
65 if(vCard ==
null)
continue;
72 Properties properties =
new Properties();
78 if(vCard ==
null)
continue;
81 return URLEncoder.encode(result,
"UTF-8");
85 Properties properties =
new Properties();
92 }
catch (VCardException ex) {
101 Barcode qr =
new Barcode();
103 }
catch (IOException ex) {
static String getRealPath(String path)
static String logMsg(String msg)
static BufferedReader getBufferedFile(String folder, String file)
static File saveVCards(VCardList list)
ExportToVCard(List< Contact > contacts)
BufferedImage getQRCode()
String getAndroidString()
String getEncodedString()
ExportToVCard(Contact contact)