VCardContact
Inheritance: java.lang.Object
public final class VCardContact
Represents a vCard contact
Constructors
Constructor | Description |
---|---|
VCardContact() | Initializes a new instance of the VCardContact class |
Methods
Method | Description |
---|---|
equals(Object arg0) | |
getClass() | |
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 |
getLabels() | Gets or sets a delivery addresses |
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 |
hashCode() | |
isMultiContacts(InputStream stream) | Checks whether source stream contains multi contacts. |
load(InputStream stream) | Reads VCardContact from the specified stream containing vCard. |
load(InputStream stream, Charset encoding) | Reads VCardContact from the specified stream containing vCard. |
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) | Reads VCardContact from the specified vCard file The supported vCard versions are 2.1 and 3.0 |
loadAsMultiple(InputStream stream, Charset encoding) | Loads list of contacts from multi contact stream. |
loadAsMultiple(String filePath, Charset encoding) | Loads list of contacts from multi contact file. |
notify() | |
notifyAll() | |
save(OutputStream stream) | Saves this MapiContact into the given stream with vCard format. |
save(OutputStream stream, ContactSaveOptions saveOptions) | Saves this MapiContact to the given stream using specified save options. |
save(OutputStream stream, int saveFormat) | Saves this MapiContact to the given stream with a format using the default options. |
save(String filePath) | Saves this MapiContact to the vCard file with a default options. |
save(String filePath, ContactSaveOptions saveOptions) | Saves this MapiContact into file using specified save options. |
save(String filePath, int saveFormat) | Saves this MapiContact to the specified file with a format using the default options. |
setDeliveryAddresses(VCardDeliveryAddressCollection value) | Gets or sets a delivery addresses |
setEmails(VCardEmailCollection value) | Gets or sets a contact’s email addresses |
setExplanatoryInfo(VCardExplanatoryInfo value) | Gets or sets a vCard explanatory information |
setExtendedProperties(System.Collections.Specialized.StringCollection value) | Gets or sets an extended properties |
setGeo(VCardGeo value) | Gets or sets a global positioning |
setIdentificationInfo(VCardIdentificationInfo value) | Gets or sets an identification properties |
setLabels(VCardLabelCollection value) | Gets or sets a delivery addresses |
setMailer(String value) | Gets or sets a mailer |
setOrganization(VCardOrganization value) | Gets or sets an organization information |
setSecurity(VCardSecurity value) | Gets or sets a security properites |
setTelephoneNumbers(VCardTelephoneNumberCollection value) | Gets or sets a contact’s telephone numbers |
setTimeZone(String value) | Gets or sets a timeZone |
toString() | |
wait() | |
wait(long arg0) | |
wait(long arg0, int arg1) |
VCardContact()
public VCardContact()
Initializes a new instance of the VCardContact class
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.lang.Object |
Returns: boolean
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getDeliveryAddresses()
public final VCardDeliveryAddressCollection getDeliveryAddresses()
Gets or sets a delivery addresses
Returns: VCardDeliveryAddressCollection
getEmails()
public final VCardEmailCollection getEmails()
Gets or sets a contact’s email addresses
Returns: VCardEmailCollection
getExplanatoryInfo()
public final VCardExplanatoryInfo getExplanatoryInfo()
Gets or sets a vCard explanatory information
Returns: VCardExplanatoryInfo
getExtendedProperties()
public final System.Collections.Specialized.StringCollection getExtendedProperties()
Gets or sets an extended properties
Returns: com.aspose.ms.System.Collections.Specialized.StringCollection
getGeo()
public final VCardGeo getGeo()
Gets or sets a global positioning
Returns: VCardGeo
getIdentificationInfo()
public final VCardIdentificationInfo getIdentificationInfo()
Gets or sets an identification properties
Returns: VCardIdentificationInfo
getLabels()
public final VCardLabelCollection getLabels()
Gets or sets a delivery addresses
Returns: VCardLabelCollection
getMailer()
public final String getMailer()
Gets or sets a mailer
Returns: java.lang.String
getOrganization()
public final VCardOrganization getOrganization()
Gets or sets an organization information
Returns: VCardOrganization
getSecurity()
public final VCardSecurity getSecurity()
Gets or sets a security properites
Returns: VCardSecurity
getTelephoneNumbers()
public final VCardTelephoneNumberCollection getTelephoneNumbers()
Gets or sets a contact’s telephone numbers
Returns: VCardTelephoneNumberCollection
getTimeZone()
public final String getTimeZone()
Gets or sets a timeZone
Returns: java.lang.String
hashCode()
public native int hashCode()
Returns: int
isMultiContacts(InputStream stream)
public static boolean isMultiContacts(InputStream stream)
Checks whether source stream contains multi contacts.
Parameters:
Parameter | Type | Description |
---|---|---|
stream | java.io.InputStream | Source stream |
Returns: boolean - True if multi contacts, otherwise false.
load(InputStream stream)
public static VCardContact load(InputStream stream)
Reads VCardContact from the specified stream containing vCard. The supported vCard versions are 2.1 and 3.0
Parameters:
Parameter | Type | Description |
---|---|---|
stream | java.io.InputStream | A stream to read from |
Returns: VCardContact - A read VCardContact
load(InputStream stream, Charset encoding)
public 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
Parameters:
Parameter | Type | Description |
---|---|---|
stream | java.io.InputStream | A stream to read from |
encoding | java.nio.charset.Charset | Stream data encoding |
Returns: VCardContact - A read VCardContact
load(String filePath)
public static VCardContact load(String filePath)
Reads VCardContact from the specified vCard file The supported vCard versions are 2.1 and 3.0
Parameters:
Parameter | Type | Description |
---|---|---|
filePath | java.lang.String | A file name to read from |
Returns: VCardContact - A read VCardContact
load(String filePath, Charset encoding)
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
Parameters:
Parameter | Type | Description |
---|---|---|
filePath | java.lang.String | A file name to read from |
encoding | java.nio.charset.Charset | File encoding |
Returns: VCardContact - A read VCardContact
loadAsMultiple(InputStream stream, Charset encoding)
public static List<VCardContact> loadAsMultiple(InputStream stream, Charset encoding)
Loads list of contacts from multi contact stream.
Parameters:
Parameter | Type | Description |
---|---|---|
stream | java.io.InputStream | Source stream |
encoding | java.nio.charset.Charset | Stream data encoding,if null then UTF8 will be used. |
Returns: java.util.List<com.aspose.email.VCardContact> - List of contacs
loadAsMultiple(String filePath, Charset encoding)
public static List<VCardContact> loadAsMultiple(String filePath, Charset encoding)
Loads list of contacts from multi contact file.
Parameters:
Parameter | Type | Description |
---|---|---|
filePath | java.lang.String | Source file |
encoding | java.nio.charset.Charset | File data encoding,if null then UTF8 will be used. |
Returns: java.util.List<com.aspose.email.VCardContact> -
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
save(OutputStream stream)
public final void save(OutputStream stream)
Saves this MapiContact into the given stream with vCard format. The supported vCard version is 2.1
Parameters:
Parameter | Type | Description |
---|---|---|
stream | java.io.OutputStream | A stream to save to |
save(OutputStream stream, ContactSaveOptions saveOptions)
public final void save(OutputStream stream, ContactSaveOptions saveOptions)
Saves this MapiContact to the given stream using specified save options. The supported save options is VCardSaveOptions
Parameters:
Parameter | Type | Description |
---|---|---|
stream | java.io.OutputStream | A stream to save to |
saveOptions | ContactSaveOptions | A save options |
save(OutputStream stream, int saveFormat)
public 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
Parameters:
Parameter | Type | Description |
---|---|---|
stream | java.io.OutputStream | A stream to save to |
saveFormat | int | A save format |
save(String filePath)
public final void save(String filePath)
Saves this MapiContact to the vCard file with a default options. The supported vCard version is 2.1
Parameters:
Parameter | Type | Description |
---|---|---|
filePath | java.lang.String | A vCard file name |
save(String filePath, ContactSaveOptions saveOptions)
public final void save(String filePath, ContactSaveOptions saveOptions)
Saves this MapiContact into file using specified save options. The supported save options is VCardSaveOptions
Parameters:
Parameter | Type | Description |
---|---|---|
filePath | java.lang.String | A vCard file name |
saveOptions | ContactSaveOptions | A save options |
save(String filePath, int saveFormat)
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.
Parameters:
Parameter | Type | Description |
---|---|---|
filePath | java.lang.String | A vCard file name |
saveFormat | int | A save format |
setDeliveryAddresses(VCardDeliveryAddressCollection value)
public final void setDeliveryAddresses(VCardDeliveryAddressCollection value)
Gets or sets a delivery addresses
Parameters:
Parameter | Type | Description |
---|---|---|
value | VCardDeliveryAddressCollection |
setEmails(VCardEmailCollection value)
public final void setEmails(VCardEmailCollection value)
Gets or sets a contact’s email addresses
Parameters:
Parameter | Type | Description |
---|---|---|
value | VCardEmailCollection |
setExplanatoryInfo(VCardExplanatoryInfo value)
public final void setExplanatoryInfo(VCardExplanatoryInfo value)
Gets or sets a vCard explanatory information
Parameters:
Parameter | Type | Description |
---|---|---|
value | VCardExplanatoryInfo |
setExtendedProperties(System.Collections.Specialized.StringCollection value)
public final void setExtendedProperties(System.Collections.Specialized.StringCollection value)
Gets or sets an extended properties
Parameters:
Parameter | Type | Description |
---|---|---|
value | com.aspose.ms.System.Collections.Specialized.StringCollection |
setGeo(VCardGeo value)
public final void setGeo(VCardGeo value)
Gets or sets a global positioning
Parameters:
Parameter | Type | Description |
---|---|---|
value | VCardGeo |
setIdentificationInfo(VCardIdentificationInfo value)
public final void setIdentificationInfo(VCardIdentificationInfo value)
Gets or sets an identification properties
Parameters:
Parameter | Type | Description |
---|---|---|
value | VCardIdentificationInfo |
setLabels(VCardLabelCollection value)
public final void setLabels(VCardLabelCollection value)
Gets or sets a delivery addresses
Parameters:
Parameter | Type | Description |
---|---|---|
value | VCardLabelCollection |
setMailer(String value)
public final void setMailer(String value)
Gets or sets a mailer
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
setOrganization(VCardOrganization value)
public final void setOrganization(VCardOrganization value)
Gets or sets an organization information
Parameters:
Parameter | Type | Description |
---|---|---|
value | VCardOrganization |
setSecurity(VCardSecurity value)
public final void setSecurity(VCardSecurity value)
Gets or sets a security properites
Parameters:
Parameter | Type | Description |
---|---|---|
value | VCardSecurity |
setTelephoneNumbers(VCardTelephoneNumberCollection value)
public final void setTelephoneNumbers(VCardTelephoneNumberCollection value)
Gets or sets a contact’s telephone numbers
Parameters:
Parameter | Type | Description |
---|---|---|
value | VCardTelephoneNumberCollection |
setTimeZone(String value)
public final void setTimeZone(String value)
Gets or sets a timeZone
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |