public final class VCardFormat extends FormatBase
Represents a vCard (Virtual Contact File) electronic business card.
Constructor and Description |
---|
VCardFormat(InputStream input) |
VCardFormat(String fileName)
Initializes a new instance of the
VCardFormat class. |
Modifier and Type | Method and Description |
---|---|
void |
cleanMetadata()
Removes writable metadata properties associated with the file.
|
protected void |
dispose(boolean disposing)
Releases unmanaged and optionally managed resources.
|
int |
getType()
Gets the type of the loaded file.
|
VCardMetadata[] |
getVCardInfo()
Gets an array of vCard objects extracted from the file.
|
close, dispose, getMetadata, getMIMEType, readByMetadataKey, save, save, save
public VCardFormat(String fileName)
Initializes a new instance of the VCardFormat
class.
fileName
- A string that contains the full name of the file from which to create a VCardFormat
instance.public VCardFormat(InputStream input)
public int getType()
Gets the type of the loaded file.
getType
in class FormatBase
public void cleanMetadata()
Removes writable metadata properties associated with the file. Metadata cleaning is not supported for this format.
cleanMetadata
in class FormatBase
public final VCardMetadata[] getVCardInfo()
Gets an array of vCard objects extracted from the file.
protected void dispose(boolean disposing)
Releases unmanaged and optionally managed resources.
dispose
in class FormatBase
disposing
- true
to release both managed and unmanaged resources; false
to release only unmanaged resources.Copyright © 2019. All rights reserved.