mangstadt / ez-vcard

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

Prodid doesn't set the value i give it... #20

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Create a prodidtype and set it to vcard

What is the expected output?
the string "xxxxxxx"

What is the actual output?
ez-vcard 0.8.3

What version of ez-vcard are you using?
ez-vcard 0.8.3

What version of Java are you using?
1.6

Please provide any additional information below.

Original issue reported on code.google.com by xaviour....@gmail.com on 17 Sep 2014 at 5:23

GoogleCodeExporter commented 9 years ago
Hello,

If you are defining your own PRODID property, set the "addProdId" flag to 
"false" before writing the vCard.  Otherwise, your PRODID property will be 
overwritten by ez-vcard's.

VCard vcard = ...
VCardWriter writer = new VCardWriter(...);
writer.setAddProdId(false);
writer.writer(vcard);

Ezvcard.write(vcard).prodId(false).go();

Original comment by mike.angstadt on 17 Sep 2014 at 1:46