Coder Social home page Coder Social logo

ez-vcard's Introduction

ez-vcard

ez-vcard is a vCard library written in Java. It can read and write vCards in many different formats. The "ez" stands for "easy" because the goal is to create a library that's easy to use.

Downloads | Javadocs | Maven

String str =
"BEGIN:VCARD\r\n" +
"VERSION:4.0\r\n" +
"N:Doe;Jonathan;;Mr;\r\n" +
"FN:John Doe\r\n" +
"END:VCARD\r\n";

VCard vcard = Ezvcard.parse(str).first();
String fullName = vcard.getFormattedName().getValue();
String lastName = vcard.getStructuredName().getFamily();
VCard vcard = new VCard();

StructuredName n = new StructuredName();
n.setFamily("Doe");
n.setGiven("Jonathan");
n.addPrefix("Mr");
vcard.setStructuredName(n);

vcard.setFormattedName("John Doe");

String str = Ezvcard.write(vcard).version(VCardVersion.V4_0).go();

Features

  • Simple, intuitive API (see Examples).
  • Android compatibility (see ez-vcard-android project).
  • Full compliance with 2.1, 3.0, and 4.0 specifications (see Supported Specifications).
  • Supports XML, HTML, and JSON encoded vCards (see Supported Specifications).
  • Extensive unit test coverage.
  • Low Java version requirement (1.5 or above).
  • Few dependencies on external libraries. Dependencies can be selectively excluded based on the functionality that is needed (see Dependencies).

News

March 21, 2015

Due to the impending shutdown of Google Code, ez-vcard has moved to Github! Please bear with me as I work out the kinks. :)

October 13, 2014

Downloads Version 0.9.6 released. This released fixes a few miscellaneous bugs. Please see the changelog for details.

August 17, 2014

Do you use ez-vcard with Android? The ez-vcard-android project makes it easier to use ez-vcard with Android!

July 26, 2014

Version 0.9.5 released. This released fixes a few miscellaneous bugs. Please see the changelog for details.

Old News

Maven

<dependency>
   <groupId>com.googlecode.ez-vcard</groupId>
   <artifactId>ez-vcard</artifactId>
   <version>0.9.6</version>
</dependency>

Questions / Feedback

Questions and feedback can be posted to the discussion forum. You can also email me directly: mike(dot)angstadt(at)gmail(dot)com

Please submit bug reports and feature requests to the issue tracker. Contributors are listed in the project credits.

Credits

Lead Developer
Michael Angstadt

Documentation
Michael Angstadt

Architecture Ideas
George El-Haddad (CardMe Project)

Maven Central Reviewer
Joel Orlina

Project Hosting
Github
Google Code

Contributors
amarnathr (hCard template bug)
Moritz Bechler (Geo URI bug fix)
Kiran Kumar Bhushan (quoted-printable bug)
Florian Brunner (OSGi metadata)
Pratyush Chandra (ez-vcard-android)
Juliane Dombrowski (quoted-printable line folding)
F. Gaffron (quoted-printable charsets)
knutolav (Issue 1, Issue 2)
David Nault (Issue 3, Issue 7)
Matt Siegel (base64 property value bug, unit test bug)
David Spieler (hCard template bug)
Tom Vogel (quoted-printable charsets)
Eike Weyl (Wiki fix)
沈健 (plain-text vCard formatting issue)

Caffeine Suppliers
'feine
Starbucks
Volo Coffeehouse

No animals were harmed in the making of this library.

Donate

Tips are greatly appreciated. Thank you. :)

https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=8CEN7MPKRBKU6&lc=US&item_name=Michael%20Angstadt&item_number=ez%2dvcard&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted

ez-vcard's People

Contributors

mangstadt avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.