public final class VCardContact extends Object
Represents a vCard contact
Constructor and Description |
---|
VCardContact()
Initializes a new instance of the
VCardContact class |
Modifier and Type | Method and Description |
---|---|
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
|
com.aspose.ms.System.Collections.Specialized.StringCollection |
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)
Reads
VCardContact from the specified stream containing vCard. |
static VCardContact |
load(InputStream stream,
Charset encoding)
Reads
VCardContact from the specified stream containing vCard. |
static VCardContact |
load(String filePath)
Reads
VCardContact from the specified vCard file
The supported vCard versions are 2.1 and 3.0 |
static VCardContact |
load(String filePath,
Charset encoding)
Reads
VCardContact from the specified vCard file
The supported vCard versions are 2.1 and 3.0 |
void |
save(OutputStream stream)
Saves this
MapiContact into the given stream with vCard format. |
void |
save(OutputStream stream,
ContactSaveOptions saveOptions)
Saves this
MapiContact to the given stream using specified save options. |
void |
save(OutputStream stream,
int saveFormat)
Saves this
MapiContact to the given stream with a format using the default options. |
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)
Gets or sets a delivery addresses
|
void |
setEmails(VCardEmailCollection value)
Gets or sets a contact's email addresses
|
void |
setExplanatoryInfo(VCardExplanatoryInfo value)
Gets or sets a vCard explanatory information
|
void |
setExtendedProperties(com.aspose.ms.System.Collections.Specialized.StringCollection value)
Gets or sets an extended properties
|
void |
setGeo(VCardGeo value)
Gets or sets a global positioning
|
void |
setIdentificationInfo(VCardIdentificationInfo value)
Gets or sets an identification properties
|
void |
setMailer(String value)
Gets or sets a mailer
|
void |
setOrganization(VCardOrganization value)
Gets or sets an organization information
|
void |
setSecurity(VCardSecurity value)
Gets or sets a security properites
|
void |
setTelephoneNumbers(VCardTelephoneNumberCollection value)
Gets or sets a contact's telephone numbers
|
void |
setTimeZone(String value)
Gets or sets a timeZone
|
public VCardContact()
Initializes a new instance of the VCardContact
class
public VCardIdentificationInfo getIdentificationInfo()
Gets or sets an identification properties
VCardIdentificationInfo
object.public void setIdentificationInfo(VCardIdentificationInfo value)
Gets or sets an identification properties
value
- a VCardIdentificationInfo
object.public VCardDeliveryAddressCollection getDeliveryAddresses()
Gets or sets a delivery addresses
VCardDeliveryAddressCollection
object.public void setDeliveryAddresses(VCardDeliveryAddressCollection value)
Gets or sets a delivery addresses
value
- a VCardDeliveryAddressCollection
object.public VCardTelephoneNumberCollection getTelephoneNumbers()
Gets or sets a contact's telephone numbers
VCardTelephoneNumberCollection
object.public void setTelephoneNumbers(VCardTelephoneNumberCollection value)
Gets or sets a contact's telephone numbers
value
- a VCardTelephoneNumberCollection
object.public VCardEmailCollection getEmails()
Gets or sets a contact's email addresses
VCardEmailCollection
object.public void setEmails(VCardEmailCollection value)
Gets or sets a contact's email addresses
value
- a VCardEmailCollection
object.public void setMailer(String value)
Gets or sets a mailer
value
- a String
object.public void setTimeZone(String value)
Gets or sets a timeZone
value
- a String
object.public void setGeo(VCardGeo value)
Gets or sets a global positioning
value
- a VCardGeo
object.public VCardOrganization getOrganization()
Gets or sets an organization information
VCardOrganization
object.public void setOrganization(VCardOrganization value)
Gets or sets an organization information
value
- a VCardOrganization
object.public VCardExplanatoryInfo getExplanatoryInfo()
Gets or sets a vCard explanatory information
VCardExplanatoryInfo
object.public void setExplanatoryInfo(VCardExplanatoryInfo value)
Gets or sets a vCard explanatory information
value
- a VCardExplanatoryInfo
object.public VCardSecurity getSecurity()
Gets or sets a security properites
VCardSecurity
object.public void setSecurity(VCardSecurity value)
Gets or sets a security properites
value
- a VCardSecurity
object.public com.aspose.ms.System.Collections.Specialized.StringCollection getExtendedProperties()
Gets or sets an extended properties
StringCollection
object.public void setExtendedProperties(com.aspose.ms.System.Collections.Specialized.StringCollection value)
Gets or sets an extended properties
value
- a StringCollection
object.public static VCardContact load(String filePath)
Reads VCardContact
from the specified vCard file
The supported vCard versions are 2.1 and 3.0
filePath
- A file name to read fromVCardContact
com.aspose.ms.System.ArgumentException
- filePath
is null
or empty
public static VCardContact load(String filePath, Charset encoding)
Reads VCardContact
from the specified vCard file
The supported vCard versions are 2.1 and 3.0
filePath
- A file name to read fromencoding
- File encodingVCardContact
com.aspose.ms.System.ArgumentException
- filePath
is null
or empty
public static VCardContact load(InputStream stream)
Reads VCardContact
from the specified stream containing vCard.
The supported vCard versions are 2.1 and 3.0
stream
- A stream to read fromVCardContact
com.aspose.ms.System.ArgumentNullException
- stream
is null
com.aspose.ms.System.NotSupportedException
- stream
does not support readingpublic static VCardContact load(InputStream stream, Charset encoding)
Reads VCardContact
from the specified stream containing vCard.
The supported vCard versions are 2.1 and 3.0
stream
- A stream to read fromencoding
- Stream data encodingVCardContact
com.aspose.ms.System.ArgumentNullException
- stream
is null
com.aspose.ms.System.NotSupportedException
- stream
does not support readingpublic void save(String filePath)
Saves this MapiContact
to the vCard file with a default options.
The supported vCard version is 2.1
filePath
- A vCard file namecom.aspose.ms.System.ArgumentException
- filePath
is null
or empty
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.
filePath
- A vCard file namesaveFormat
- A save formatcom.aspose.ms.System.ArgumentException
- filePath
is null
or empty
com.aspose.ms.System.NotSupportedException
- the specified format is not supportedpublic void save(String filePath, ContactSaveOptions saveOptions)
Saves this MapiContact
into file using specified save options.
The supported save options is VCardSaveOptions
filePath
- A vCard file namesaveOptions
- A save optionscom.aspose.ms.System.ArgumentException
- filePath
is null
or empty
com.aspose.ms.System.ArgumentNullException
- saveOptions
is null
com.aspose.ms.System.NotSupportedException
- some save option is not supportedpublic void save(OutputStream stream)
Saves this MapiContact
into the given stream with vCard format.
The supported vCard version is 2.1
stream
- A stream to save tocom.aspose.ms.System.ArgumentNullException
- stream
is null
com.aspose.ms.System.NotSupportedException
- stream
does not support writingpublic void save(OutputStream stream, int saveFormat)
Saves this MapiContact
to the given stream with a format using the default options.
The supported save format is vCard
stream
- A stream to save tosaveFormat
- A save formatcom.aspose.ms.System.ArgumentNullException
- stream
is null
com.aspose.ms.System.NotSupportedException
- stream
does not support writingcom.aspose.ms.System.NotSupportedException
- The specified format is not supportedpublic void save(OutputStream stream, ContactSaveOptions saveOptions)
Saves this MapiContact
to the given stream using specified save options.
The supported save options is VCardSaveOptions
stream
- A stream to save tosaveOptions
- A save optionscom.aspose.ms.System.ArgumentNullException
- stream
or saveOptions
is null
com.aspose.ms.System.NotSupportedException
- stream
does not support writingcom.aspose.ms.System.ArgumentException
- incorrect saveOptions
com.aspose.ms.System.NotSupportedException
- some save option is not supportedCopyright (c) 2008-2016 Aspose Pty Ltd. All Rights Reserved.