public final class Attachment extends Object
HMEFMessage
. Provides both helper
methods to get at common parts and attributes of the attachment,
and list methods to get all of them.Constructor and Description |
---|
Attachment() |
Modifier and Type | Method and Description |
---|---|
TNEFAttribute |
getAttribute(TNEFProperty id)
Return the attachment attribute with the given ID,
or null if there isn't one.
|
List<TNEFAttribute> |
getAttributes()
Returns all HMEF/TNEF attributes of the attachment,
such as filename, icon and contents
|
byte[] |
getContents()
Returns the contents of the attachment.
|
String |
getExtension()
Returns the file extension
|
String |
getFilename()
Returns the short filename
|
String |
getLongFilename()
Returns the long filename
|
MAPIAttribute |
getMAPIAttribute(MAPIProperty id)
Return the attachment MAPI Attribute with the given ID,
or null if there isn't one.
|
List<MAPIAttribute> |
getMAPIAttributes()
Returns all MAPI attributes of the attachment,
such as extension, encoding, size and position
|
Date |
getModifiedDate()
Return when the file was last modified, if known.
|
byte[] |
getRenderedMetaFile()
Returns the Meta File rendered representation
of the attachment, or null if not set.
|
public TNEFAttribute getAttribute(TNEFProperty id)
public MAPIAttribute getMAPIAttribute(MAPIProperty id)
public List<TNEFAttribute> getAttributes()
public List<MAPIAttribute> getMAPIAttributes()
public String getFilename()
public String getLongFilename()
public String getExtension()
public Date getModifiedDate()
public byte[] getContents()
IllegalArgumentException
- if there is no AttachmentData available in this Attachmentpublic byte[] getRenderedMetaFile()
Copyright © 2010 - 2020 Adobe. All Rights Reserved