-
- static private Card getCard(String input) throws IOException {
- Format format = Format.Abook;
- String ext = input;
- if (ext.contains(".")) {
- String tab[] = ext.split("\\.");
- if (tab.length > 1 && tab[tab.length - 1].equalsIgnoreCase("vcf")) {
- format = Format.VCard21;
- }
- }
-
- Card card = null;
- try {
- card = new Card(new File(input), format);
- } catch (IOException ioe) {
- ioe.printStackTrace();
- throw ioe;
- }
-
- return card;
- }