* @throws IOException
* in case of IO error
*/
- public static List<Contact> parse(File file, Format format)
+ public static List<Contact> parseContact(File file, Format format)
throws IOException {
List<String> lines = null;
if (lines == null)
return new LinkedList<Contact>();
- return parse(lines, format);
+ return parseContact(lines, format);
}
/**
*
* @return the list of elements
*/
- public static List<Contact> parse(List<String> lines, Format format) {
+ public static List<Contact> parseContact(List<String> 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: "
* @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
*