fromReader

fun fromReader(reader: Reader, jCard: Boolean, downloader: Contact.Downloader?): List<Contact>

Parses an InputStream that contains a vCard.

Return

list of filled Event data objects (may have size 0) – doesn't return null

Parameters

reader

reader for the input stream containing the vCard (pay attention to the charset)

downloader

will be used to download external resources like contact photos (may be null)

jCard

true: content is jCard; false: content is vCard

Throws

on I/O errors when reading the stream

CannotParseException

when the vCard can't be parsed