a_vcard.android.syncml.pim.vcard
Class VCardParser

java.lang.Object
  extended by a_vcard.android.syncml.pim.vcard.VCardParser

public class VCardParser
extends java.lang.Object


Field Summary
static java.lang.String VERSION_VCARD21
           
static int VERSION_VCARD21_INT
           
static java.lang.String VERSION_VCARD30
           
static int VERSION_VCARD30_INT
           
 
Constructor Summary
VCardParser()
           
 
Method Summary
 boolean parse(java.lang.String vcardStr, java.lang.String encoding, VDataBuilder builder)
          Parse the given vcard string
 boolean parse(java.lang.String vcardStr, VDataBuilder builder)
          Parse the given vcard string with US-ASCII encoding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERSION_VCARD21

public static final java.lang.String VERSION_VCARD21
See Also:
Constant Field Values

VERSION_VCARD30

public static final java.lang.String VERSION_VCARD30
See Also:
Constant Field Values

VERSION_VCARD21_INT

public static final int VERSION_VCARD21_INT
See Also:
Constant Field Values

VERSION_VCARD30_INT

public static final int VERSION_VCARD30_INT
See Also:
Constant Field Values
Constructor Detail

VCardParser

public VCardParser()
Method Detail

parse

public boolean parse(java.lang.String vcardStr,
                     java.lang.String encoding,
                     VDataBuilder builder)
              throws VCardException,
                     java.io.IOException
Parse the given vcard string

Parameters:
vcardStr - to content to be parsed
encoding - encoding of vcardStr
builder - the data builder to hold data
Returns:
true if the string is successfully parsed, else return false
Throws:
VCardException
java.io.IOException

parse

public boolean parse(java.lang.String vcardStr,
                     VDataBuilder builder)
              throws VCardException,
                     java.io.IOException
Parse the given vcard string with US-ASCII encoding

Parameters:
vcardStr - to content to be parsed
builder - the data builder to hold data
Returns:
true if the string is successfully parsed, else return false
Throws:
VCardException
java.io.IOException