X-Git-Url: http://git.nikiroo.be/?p=jvcard.git;a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Fjvcard%2Fparsers%2FParser.java;h=ceb35dccca75de055917b4050b5df3f912110fb3;hp=1fa7c5749805746d58e41f9fae52e575e2cb529d;hb=0b6140e4a200c4952c9dc003d8389f375191564e;hpb=cf77cb3542f2aefbebdb9aa00b358dbeb4489a73 diff --git a/src/be/nikiroo/jvcard/parsers/Parser.java b/src/be/nikiroo/jvcard/parsers/Parser.java index 1fa7c57..ceb35dc 100644 --- a/src/be/nikiroo/jvcard/parsers/Parser.java +++ b/src/be/nikiroo/jvcard/parsers/Parser.java @@ -28,7 +28,7 @@ public class Parser { * @throws IOException * in case of IO error */ - public static List parse(File file, Format format) + public static List parseContact(File file, Format format) throws IOException { List lines = null; @@ -46,7 +46,7 @@ public class Parser { if (lines == null) return new LinkedList(); - return parse(lines, format); + return parseContact(lines, format); } /** @@ -59,12 +59,12 @@ public class Parser { * * @return the list of elements */ - public static List parse(List lines, Format format) { + public static List parseContact(List lines, Format format) { switch (format) { case VCard21: - return Vcard21Parser.parse(lines); + return Vcard21Parser.parseContact(lines); case Abook: - return AbookParser.parse(lines); + return AbookParser.parseContact(lines); default: throw new InvalidParameterException("Unknown format: " @@ -79,10 +79,6 @@ public class Parser { * @param card * the card to convert * - * @param startingBKey - * the starting BKey number (all the other will follow) or -1 for - * no BKey - * * @param format * the output {@link Format} to use *