com.aspose.email
Class VCardContact

java.lang.Object
  extended by com.aspose.email.VCardContact

public final class VCardContact
extends Object

Represents a vCard contact


Constructor Summary
VCardContact()
           Initializes a new instance of the VCardContact class
 
Method Summary
 VCardDeliveryAddressCollection getDeliveryAddresses()
           Gets or sets a delivery addresses
 VCardEmailCollection getEmails()
           Gets or sets a contact's email addresses
 VCardExplanatoryInfo getExplanatoryInfo()
           Gets or sets a vCard explanatory information
 ArrayList<String> getExtendedProperties()
           Gets or sets an extended properties
 VCardGeo getGeo()
           Gets or sets a global positioning
 VCardIdentificationInfo getIdentificationInfo()
           Gets or sets an identification properties
 String getMailer()
           Gets or sets a mailer
 VCardOrganization getOrganization()
           Gets or sets an organization information
 VCardSecurity getSecurity()
           Gets or sets a security properites
 VCardTelephoneNumberCollection getTelephoneNumbers()
           Gets or sets a contact's telephone numbers
 String getTimeZone()
           Gets or sets a timeZone
static VCardContact load(InputStream stream)
           
static VCardContact load(String filePath)
           Reads VCardContact from the specified vCard file The supported vCard versions are 2.1 and 3.0
 void save(OutputStream stream)
           
 void save(OutputStream stream, ContactSaveOptions saveOptions)
           
 void save(OutputStream stream, int saveFormat)
           
 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, int saveFormat)
           Saves this MapiContact to the specified file with a format using the default options.
 void setDeliveryAddresses(VCardDeliveryAddressCollection value)
           
 void setEmails(VCardEmailCollection value)
           
 void setExplanatoryInfo(VCardExplanatoryInfo value)
           
 void setExtendedProperties(ArrayList<String> value)
           
 void setGeo(VCardGeo value)
           
 void setIdentificationInfo(VCardIdentificationInfo value)
           
 void setMailer(String value)
           
 void setOrganization(VCardOrganization value)
           
 void setSecurity(VCardSecurity value)
           
 void setTelephoneNumbers(VCardTelephoneNumberCollection value)
           
 void setTimeZone(String value)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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


setIdentificationInfo

public void setIdentificationInfo(VCardIdentificationInfo value)

getDeliveryAddresses

public VCardDeliveryAddressCollection getDeliveryAddresses()

Gets or sets a delivery addresses


setDeliveryAddresses

public void setDeliveryAddresses(VCardDeliveryAddressCollection value)

getTelephoneNumbers

public VCardTelephoneNumberCollection getTelephoneNumbers()

Gets or sets a contact's telephone numbers


setTelephoneNumbers

public void setTelephoneNumbers(VCardTelephoneNumberCollection value)

getEmails

public VCardEmailCollection getEmails()

Gets or sets a contact's email addresses


setEmails

public void setEmails(VCardEmailCollection value)

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


setOrganization

public void setOrganization(VCardOrganization value)

getExplanatoryInfo

public VCardExplanatoryInfo getExplanatoryInfo()

Gets or sets a vCard explanatory information


setExplanatoryInfo

public void setExplanatoryInfo(VCardExplanatoryInfo value)

getSecurity

public VCardSecurity getSecurity()

Gets or sets a security properites


setSecurity

public void setSecurity(VCardSecurity value)

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

load

public static VCardContact load(InputStream stream)

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)

save

public void save(OutputStream stream,
                 int saveFormat)

save

public void save(OutputStream stream,
                 ContactSaveOptions saveOptions)


Copyright (c) 2002-2012 Aspose Pty Ltd. All Rights Reserved.