FileDocCategorySizeDatePackage
VCardParser_V30.javaAPI DocAndroid 5.1 API3495Thu Mar 12 22:22:54 GMT 2015com.android.vcard

VCardParser_V30

public class VCardParser_V30 extends VCardParser

vCard parser for vCard 3.0. See RFC 2426 for more detail.

This parser allows vCard format which is not allowed in the RFC, since we have seen several vCard 3.0 files which don't comply with it.

e.g. vCard 3.0 does not allow "CHARSET" attribute, but some actual files have it and they uses non UTF-8 charsets. UTF-8 is recommended in RFC 2426, but it is not a must. We silently allow "CHARSET".

Fields Summary
static final Set
sKnownPropertyNameSet
static final Set
sAcceptableEncoding

A unmodifiable Set storing the values for the type "ENCODING", available in the vCard 3.0.

Though vCard 2.1 specification does not allow "7BIT" or "BASE64", we allow them for safety.

"QUOTED-PRINTABLE" is not allowed in vCard 3.0 and not in this parser either, because the encoding ambiguates how the vCard file to be parsed.

private final VCardParserImpl_V30
mVCardParserImpl
Constructors Summary
public VCardParser_V30()


      
        mVCardParserImpl = new VCardParserImpl_V30();
    
public VCardParser_V30(int vcardType)

        mVCardParserImpl = new VCardParserImpl_V30(vcardType);
    
Methods Summary
public voidaddInterpreter(VCardInterpreter interpreter)

        mVCardParserImpl.addInterpreter(interpreter);
    
public voidcancel()

        mVCardParserImpl.cancel();
    
public voidparse(java.io.InputStream is)

        mVCardParserImpl.parse(is);
    
public voidparseOne(java.io.InputStream is)

        mVCardParserImpl.parseOne(is);