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 final VCardIdentificationInfo getIdentificationInfo()
Gets or sets an identification properties
public final void setIdentificationInfo(VCardIdentificationInfo value)
Gets or sets an identification properties
public final VCardDeliveryAddressCollection getDeliveryAddresses()
Gets or sets a delivery addresses
public final void setDeliveryAddresses(VCardDeliveryAddressCollection value)
Gets or sets a delivery addresses
public final VCardTelephoneNumberCollection getTelephoneNumbers()
Gets or sets a contact's telephone numbers
public final void setTelephoneNumbers(VCardTelephoneNumberCollection value)
Gets or sets a contact's telephone numbers
public final VCardEmailCollection getEmails()
Gets or sets a contact's email addresses
public final void setEmails(VCardEmailCollection value)
Gets or sets a contact's email addresses
public final String getMailer()
Gets or sets a mailer
public final void setMailer(String value)
Gets or sets a mailer
public final String getTimeZone()
Gets or sets a timeZone
public final void setTimeZone(String value)
Gets or sets a timeZone
public final VCardGeo getGeo()
Gets or sets a global positioning
public final void setGeo(VCardGeo value)
Gets or sets a global positioning
public final VCardOrganization getOrganization()
Gets or sets an organization information
public final void setOrganization(VCardOrganization value)
Gets or sets an organization information
public final VCardExplanatoryInfo getExplanatoryInfo()
Gets or sets a vCard explanatory information
public final void setExplanatoryInfo(VCardExplanatoryInfo value)
Gets or sets a vCard explanatory information
public final VCardSecurity getSecurity()
Gets or sets a security properites
public final void setSecurity(VCardSecurity value)
Gets or sets a security properites
public final com.aspose.ms.System.Collections.Specialized.StringCollection getExtendedProperties()
Gets or sets an extended properties
public final void setExtendedProperties(com.aspose.ms.System.Collections.Specialized.StringCollection value)
Gets or sets an extended properties
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 final 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 final 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 final 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 final 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 final 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 final 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 supported