com.aspose.email

com.aspose.email

Class VCardContact

public final class VCardContact
extends Object

Represents a vCard contact

Constructor Summary
VCardContact()
Initializes a new instance of the VCardContact class
 
Method Summary
getDeliveryAddresses()
Gets or sets a delivery addresses
getEmails()
Gets or sets a contact's email addresses
getExplanatoryInfo()
Gets or sets a vCard explanatory information
getExtendedProperties()
Gets or sets an extended properties
getGeo()
Gets or sets a global positioning
getIdentificationInfo()
Gets or sets an identification properties
getMailer()
Gets or sets a mailer
getOrganization()
Gets or sets an organization information
getSecurity()
Gets or sets a security properites
getTelephoneNumbers()
Gets or sets a contact's telephone numbers
getTimeZone()
Gets or sets a timeZone
load(InputStream stream)
load(InputStream stream, Charset encoding)
load(String filePath)
Reads VCardContact from the specified vCard file The supported vCard versions are 2.1 and 3.0
load(String filePath, Charset encoding)
void
save(OutputStream stream)
void
save(OutputStream stream, ContactSaveOptions saveOptions)
void
save(OutputStream stream, intsaveFormat)
void
save(String filePath)
Saves this MapiContact to the vCard file with a default options.
void
save(String filePath, ContactSaveOptions saveOptions)
Saves this MapiContact into file using specified save options.
void
save(String filePath, intsaveFormat)
Saves this MapiContact to the specified file with a format using the default options.
void
void
void
void
void
setGeo(VCardGeo value)
void
void
setMailer(String value)
void
void
void
void
 
Methods inherited from class java.lang.Object
 

    • Constructor Detail

      • VCardContact

        public VCardContact()

        Initializes a new instance of the VCardContact class

    • Method Detail

      • getIdentificationInfo

        public VCardIdentificationInfo getIdentificationInfo()

        Gets or sets an identification properties

      • getMailer

        public String getMailer()

        Gets or sets a mailer

      • setMailer

        public void setMailer(String value)
      • getTimeZone

        public String getTimeZone()

        Gets or sets a timeZone

      • setTimeZone

        public void setTimeZone(String value)
      • getGeo

        public VCardGeo getGeo()

        Gets or sets a global positioning

      • setGeo

        public void setGeo(VCardGeo value)
      • getOrganization

        public VCardOrganization getOrganization()

        Gets or sets an organization information

      • getExplanatoryInfo

        public VCardExplanatoryInfo getExplanatoryInfo()

        Gets or sets a vCard explanatory information

      • getSecurity

        public VCardSecurity getSecurity()

        Gets or sets a security properites

      • getExtendedProperties

        public ArrayList<String> getExtendedProperties()

        Gets or sets an extended properties

      • setExtendedProperties

        public void setExtendedProperties(ArrayList<String> value)
      • load

        public static VCardContact load(String filePath)

        Reads VCardContact from the specified vCard file The supported vCard versions are 2.1 and 3.0

        Parameters:
        filePath - A file name to read from
        Returns:
        A read VCardContact
        Throws:
        com.aspose.email.ms.System.IllegalArgumentException - filePath is null or empty
      • save

        public void save(String filePath)

        Saves this MapiContact to the vCard file with a default options. The supported vCard version is 2.1

        Parameters:
        filePath - A vCard file name
        Throws:
        com.aspose.email.ms.System.IllegalArgumentException - filePath is null or empty
      • save

        public void save(String filePath,
                         int saveFormat)

        Saves this MapiContact to the specified file with a format using the default options. The supported save format is vCard.

        Parameters:
        filePath - A vCard file name
        saveFormat - A save format
        Throws:
        com.aspose.email.ms.System.IllegalArgumentException - filePath is null or empty
        UnsupportedOperationException - the specified format is not supported
      • save

        public void save(String filePath,
                         ContactSaveOptions saveOptions)

        Saves this MapiContact into file using specified save options. The supported save options is VCardSaveOptions

        Parameters:
        filePath - A vCard file name
        saveOptions - A save options
        Throws:
        com.aspose.email.ms.System.IllegalArgumentException - filePath is null or empty
        com.aspose.email.ms.System.IllegalArgumentException - saveOptions is null
        UnsupportedOperationException - some save option is not supported
      • save

        public void save(OutputStream stream,
                         int saveFormat)