- public static List<String> toStrings(Contact contact, int startingBKey) {
- List<String> lines = new LinkedList<String>();
-
- lines.add("BEGIN:VCARD");
- lines.add("VERSION:2.1");
+ public static void write(Appendable writer, Contact contact,
+ int startingBKey) throws IOException {
+ // TODO: bkey handling?
+ writer.append("BEGIN:VCARD\r\n");
+ writer.append("VERSION:2.1\r\n");