◆ ExportToVCard() [1/2]
org.turro.vcard.util.ExportToVCard.ExportToVCard |
( |
List< Contact > |
contacts | ) |
|
◆ ExportToVCard() [2/2]
org.turro.vcard.util.ExportToVCard.ExportToVCard |
( |
Contact |
contact | ) |
|
Definition at line 53 of file ExportToVCard.java.
54 contacts =
new ArrayList<Contact>();
55 contacts.add(contact);
◆ export()
File org.turro.vcard.util.ExportToVCard.export |
( |
| ) |
throws IOException |
Definition at line 58 of file ExportToVCard.java.
59 Properties properties =
new Properties();
60 properties.load(FileUtil.getBufferedFile(
61 new File(ElephantContext.getRealPath(
"/WEB-INF/elephant/conf/vCard.properties"))));
62 VCardList list =
new VCardList();
63 for(Contact c : contacts) {
64 VCard vCard =
new ContactToVCard(c).getVCard(properties);
65 if(vCard ==
null)
continue;
68 return VCardFiles.saveVCards(list);
◆ getAndroidString()
String org.turro.vcard.util.ExportToVCard.getAndroidString |
( |
| ) |
throws IOException |
Definition at line 84 of file ExportToVCard.java.
85 Properties properties =
new Properties();
86 properties.load(FileUtil.getBufferedFile(
87 new File(ElephantContext.getRealPath(
"/WEB-INF/elephant/conf/vCard.properties"))));
89 for(Contact c : contacts) {
91 result +=
new ContactToVCard(c).generateAndroidVCard(properties);
92 }
catch (VCardException ex) {
93 Logger.getLogger(
ExportToVCard.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(
null), ex);
ExportToVCard(List< Contact > contacts)
◆ getEncodedString()
String org.turro.vcard.util.ExportToVCard.getEncodedString |
( |
| ) |
throws IOException |
Definition at line 71 of file ExportToVCard.java.
72 Properties properties =
new Properties();
73 properties.load(FileUtil.getBufferedFile(
74 new File(ElephantContext.getRealPath(
"/WEB-INF/elephant/conf/vCard.properties"))));
76 for(Contact c : contacts) {
77 VCard vCard =
new ContactToVCard(c).getVCard(properties);
78 if(vCard ==
null)
continue;
79 result += vCard.getVCard();
81 return URLEncoder.encode(result,
"UTF-8");
◆ getQRCode()
BufferedImage org.turro.vcard.util.ExportToVCard.getQRCode |
( |
| ) |
|
Definition at line 99 of file ExportToVCard.java.
101 Barcode qr =
new Barcode();
103 }
catch (IOException ex) {
104 Logger.getLogger(
ExportToVCard.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(
null), ex);
String getAndroidString()
The documentation for this class was generated from the following file: