FileDocCategorySizeDatePackage
VCardParser_V21.javaAPI DocAndroid 5.1 API4727Thu Mar 12 22:22:54 GMT 2015com.android.vcard

VCardParser_V21

public final class VCardParser_V21 extends VCardParser

vCard parser for vCard 2.1. See the specification for more detail about the spec itself.

The spec is written in 1996, and currently various types of "vCard 2.1" exist. To handle real the world vCard formats appropriately and effectively, this class does not obey with strict vCard 2.1. In stead, not only vCard spec but also real world vCard is considered.

e.g. A lot of devices and softwares let vCard importer/exporter to use the PNG format to determine the type of image, while it is not allowed in the original specification. As of 2010, we can see even the FLV format (possible in Japanese mobile phones).

Fields Summary
static final Set
sKnownPropertyNameSet
A unmodifiable Set storing the property names available in the vCard 2.1 specification.
static final Set
sKnownTypeSet
A unmodifiable Set storing the types known in vCard 2.1.
static final Set
sKnownValueSet
A unmodifiable Set storing the values for the type "VALUE", available in the vCard 2.1.
static final Set
sAvailableEncoding

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

Though vCard 2.1 specification does not allow "B" encoding, some data may have it. We allow it for safety.

private final VCardParserImpl_V21
mVCardParserImpl
Constructors Summary
public VCardParser_V21()


      
        mVCardParserImpl = new VCardParserImpl_V21();
    
public VCardParser_V21(int vcardType)

        mVCardParserImpl = new VCardParserImpl_V21(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);