mangstadt / ez-vcard

A vCard parser library for Java
Other
398 stars 92 forks source link

Parsing from chunk of text #132

Closed prrvchr closed 1 year ago

prrvchr commented 1 year ago

Hi,

I am using ez-vcard reader to parse vcards from a database and this card by card. Before parsing I must register a VCardPropertyScribe on the reader with registerScribe .

I did not find a method allowing me to use the same reader to process several cards in a row... (or several chunk of text) Maybe I searched wrong...

Anyway thanks for this API.

mangstadt commented 1 year ago

If the vCards are all part of the same input stream, then they can be processed by the same VCardReader. Otherwise, you'll need to create a new VCardReader for each input stream.

prrvchr commented 1 year ago

Indeed, in fact I was looking for a VCardReader.next(chunk) method. Thank you, I'm closing...