VCardContact

Inheritance: java.lang.Object

public final class VCardContact

Represents a vCard contact

Constructors

ConstructorDescription
VCardContact()Initializes a new instance of the VCardContact class

Methods

MethodDescription
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:

ParameterTypeDescription
arg0java.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:

ParameterTypeDescription
streamjava.io.InputStreamSource 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:

ParameterTypeDescription
streamjava.io.InputStreamA 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:

ParameterTypeDescription
streamjava.io.InputStreamA stream to read from
encodingjava.nio.charset.CharsetStream 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:

ParameterTypeDescription
filePathjava.lang.StringA 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:

ParameterTypeDescription
filePathjava.lang.StringA file name to read from
encodingjava.nio.charset.CharsetFile 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:

ParameterTypeDescription
streamjava.io.InputStreamSource stream
encodingjava.nio.charset.CharsetStream 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:

ParameterTypeDescription
filePathjava.lang.StringSource file
encodingjava.nio.charset.CharsetFile 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:

ParameterTypeDescription
streamjava.io.OutputStreamA 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:

ParameterTypeDescription
streamjava.io.OutputStreamA stream to save to
saveOptionsContactSaveOptionsA 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:

ParameterTypeDescription
streamjava.io.OutputStreamA stream to save to
saveFormatintA 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:

ParameterTypeDescription
filePathjava.lang.StringA 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:

ParameterTypeDescription
filePathjava.lang.StringA vCard file name
saveOptionsContactSaveOptionsA 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:

ParameterTypeDescription
filePathjava.lang.StringA vCard file name
saveFormatintA save format

setDeliveryAddresses(VCardDeliveryAddressCollection value)

public final void setDeliveryAddresses(VCardDeliveryAddressCollection value)

Gets or sets a delivery addresses

Parameters:

ParameterTypeDescription
valueVCardDeliveryAddressCollection

setEmails(VCardEmailCollection value)

public final void setEmails(VCardEmailCollection value)

Gets or sets a contact’s email addresses

Parameters:

ParameterTypeDescription
valueVCardEmailCollection

setExplanatoryInfo(VCardExplanatoryInfo value)

public final void setExplanatoryInfo(VCardExplanatoryInfo value)

Gets or sets a vCard explanatory information

Parameters:

ParameterTypeDescription
valueVCardExplanatoryInfo

setExtendedProperties(System.Collections.Specialized.StringCollection value)

public final void setExtendedProperties(System.Collections.Specialized.StringCollection value)

Gets or sets an extended properties

Parameters:

ParameterTypeDescription
valuecom.aspose.ms.System.Collections.Specialized.StringCollection

setGeo(VCardGeo value)

public final void setGeo(VCardGeo value)

Gets or sets a global positioning

Parameters:

ParameterTypeDescription
valueVCardGeo

setIdentificationInfo(VCardIdentificationInfo value)

public final void setIdentificationInfo(VCardIdentificationInfo value)

Gets or sets an identification properties

Parameters:

ParameterTypeDescription
valueVCardIdentificationInfo

setLabels(VCardLabelCollection value)

public final void setLabels(VCardLabelCollection value)

Gets or sets a delivery addresses

Parameters:

ParameterTypeDescription
valueVCardLabelCollection

setMailer(String value)

public final void setMailer(String value)

Gets or sets a mailer

Parameters:

ParameterTypeDescription
valuejava.lang.String

setOrganization(VCardOrganization value)

public final void setOrganization(VCardOrganization value)

Gets or sets an organization information

Parameters:

ParameterTypeDescription
valueVCardOrganization

setSecurity(VCardSecurity value)

public final void setSecurity(VCardSecurity value)

Gets or sets a security properites

Parameters:

ParameterTypeDescription
valueVCardSecurity

setTelephoneNumbers(VCardTelephoneNumberCollection value)

public final void setTelephoneNumbers(VCardTelephoneNumberCollection value)

Gets or sets a contact’s telephone numbers

Parameters:

ParameterTypeDescription
valueVCardTelephoneNumberCollection

setTimeZone(String value)

public final void setTimeZone(String value)

Gets or sets a timeZone

Parameters:

ParameterTypeDescription
valuejava.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:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int