]> git.argeo.org Git - gpl/argeo-suite.git/blob - vcard/VCardExporter.java
Prepare next development cycle
[gpl/argeo-suite.git] / vcard / VCardExporter.java
1 package org.argeo.app.ui.people.vcard;
2
3 import ezvcard.Ezvcard;
4 import ezvcard.VCard;
5
6 public class VCardExporter {
7
8 public static void main(String[] args) {
9 String str = "BEGIN:VCARD\r\n" + "VERSION:4.0\r\n" + "N:Doe;Jonathan;;Mr;\r\n" + "FN:John Doe\r\n"
10 + "END:VCARD\r\n";
11
12 VCard vcard = Ezvcard.parse(str).first();
13 String fullName = vcard.getFormattedName().getValue();
14 String lastName = vcard.getStructuredName().getFamily();
15 }
16
17 }