|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aspose.email.MapiPropertyContainer
com.aspose.email.MapiAttachment
public class MapiAttachment
Represents the attachment in the E-mail message.
Method Summary | |
---|---|
com.aspose.email.IMapiNode |
createMapiNode(String key)
Creates the mapi node. |
byte[] |
getBinaryData()
Gets or sets binary attachment data. |
Object |
getContent()
Gets the content. |
String |
getDisplayName()
Gets the display name of the ole object in an attachment. |
String |
getExtension()
Gets a filename extension that indicates the document type of an attachment. |
String |
getFileName()
Gets an attachment's base filename and extension, excluding path. |
String |
getLongFileName()
Gets an attachment's long filename and extension, excluding path. |
String |
getMimeTag()
Gets formatting information about a Multipurpose Internet Mail Extensions (MIME) attachment. |
MapiObjectProperty |
getObjectData()
Gets an attachment object typically accessed through the OLE IStorage interface. |
MapiPropertyStream |
getPropertyStream()
Gets the property stream. |
MapiPropertyCollection |
getSubStorages()
Gets the sub storages. |
void |
save(OutputStream stream)
|
void |
save(String filename)
Save attachment content. |
void |
setBinaryData(byte[] value)
|
void |
setProperty(MapiAttachment value,
long signed,
long tag)
Sets the property. |
void |
setProperty(MapiProperty property)
Sets the property. |
void |
setProperty(MapiProperty value,
long signed,
long tag)
Sets the property. |
void |
setProperty(MapiPropertyStream value,
long signed,
long tag)
Sets the property. |
void |
setProperty(MapiRecipient value,
long signed,
long tag)
Sets the property. |
void |
setPropertySet(MapiProperty value,
long signed,
long tag)
Sets the property set. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public String getExtension()
Gets a filename extension that indicates the document type of an attachment.
Value: The extension.
public MapiPropertyStream getPropertyStream()
Gets the property stream.
Value: The property stream.
public MapiPropertyCollection getSubStorages()
Gets the sub storages.
Value: The sub storages.
public String getFileName()
Gets an attachment's base filename and extension, excluding path.
Value: The file name.
public String getLongFileName()
Gets an attachment's long filename and extension, excluding path.
Value: The long file name.
public String getDisplayName()
Gets the display name of the ole object in an attachment.
Value: The display name.
public String getMimeTag()
Gets formatting information about a Multipurpose Internet Mail Extensions (MIME) attachment.
Value: The mime tag.
public byte[] getBinaryData()
Gets or sets binary attachment data.
Value: The binary data.
public void setBinaryData(byte[] value)
public Object getContent()
Gets the content.
Value: The content.
public MapiObjectProperty getObjectData()
Gets an attachment object typically accessed through the OLE IStorage interface.
Value: The object data.
public void save(String filename)
Save attachment content.
filename
- The file name to save.public void save(OutputStream stream)
public void setProperty(MapiProperty property)
Sets the property.
setProperty
in class MapiPropertyContainer
property
- The property.
com.aspose.email.ms.System.IllegalArgumentException
- If property
is null.
com.aspose.email.ms.System.IllegalArgumentException
- If property data is null.
IllegalStateException
- If data type is not supported.public com.aspose.email.IMapiNode createMapiNode(String key)
Creates the mapi node.
createMapiNode
in class MapiPropertyContainer
key
- The node key.
public void setProperty(MapiAttachment value, long signed, long tag)
Sets the property.
setProperty
in class MapiPropertyContainer
value
- The property value.signed
- The signed.tag
- The property tag.public void setProperty(MapiRecipient value, long signed, long tag)
Sets the property.
setProperty
in class MapiPropertyContainer
value
- The property value.signed
- The signed.tag
- The property tag.public void setProperty(MapiPropertyStream value, long signed, long tag)
Sets the property.
setProperty
in class MapiPropertyContainer
value
- The property value.signed
- The signed.tag
- The property tag.public void setProperty(MapiProperty value, long signed, long tag)
Sets the property.
setProperty
in class MapiPropertyContainer
value
- The property value.signed
- The signed.tag
- The property tag.public void setPropertySet(MapiProperty value, long signed, long tag)
Sets the property set.
setPropertySet
in class MapiPropertyContainer
value
- The proeprty value.signed
- The signed.tag
- The property tag.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |