Elexis API documentation
Version 2.1.6 as of December 11 2011

ch.marlovits.addressSearch.directories
Class VCardParser

java.lang.Object
  extended by ch.marlovits.addressSearch.directories.VCardParser

public class VCardParser
extends java.lang.Object


Constructor Summary
VCardParser(java.lang.String vCardContents)
          the constructor: save full contents and parse contents into the internal HashMap be careful: there may be more than just one entry for a single key!
 
Method Summary
static java.lang.String getDocReturnCharacter(java.lang.String contents)
          try to find out which kind of return character this document uses
 java.lang.String getVCardValue(java.lang.String key, int index)
          find the value for a key in the vCard HashMap
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VCardParser

public VCardParser(java.lang.String vCardContents)
the constructor: save full contents and parse contents into the internal HashMap be careful: there may be more than just one entry for a single key! -> combine into one single entry, separate entries by ITEMSEPARATOR

Parameters:
vCardContents -
Method Detail

getVCardValue

public java.lang.String getVCardValue(java.lang.String key,
                                      int index)
find the value for a key in the vCard HashMap

Parameters:
key - the key for which to find the matching value
index - the index of the actual info in the data, zero-based, semicolon-delimited
Returns:

getDocReturnCharacter

public static java.lang.String getDocReturnCharacter(java.lang.String contents)
try to find out which kind of return character this document uses

Parameters:
contents - : the text to be analyzed
Returns:
: the return character used: "\r\n" or "\r" or "\n"

Elexis API documentation
Version 2.1.6 as of December 11 2011

Copyright 2005-2011 by Gerry Weirich, Elexis