|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aspose.network.outlook.MapiPropertyContainer
com.aspose.network.outlook.AbstractMessage
com.aspose.network.outlook.MapiMessage
public class MapiMessage
Represents an Outlook Message format document that can be parsed.
Constructor Summary | |
---|---|
MapiMessage()
Create an instance of MapiMessage. |
|
MapiMessage(boolean unicode)
Create an instance of MapiMessage. |
|
MapiMessage(MapiPropertyCollection propertyCollection,
MapiAttachmentCollection attachmentCollection,
MapiRecipientCollection recipientCollection)
Create an instance of MapiMessage using MapiPropertyCollection , MapiAttachmentCollection and MapiRecipientCollection . |
Method Summary | |
---|---|
static MapiMessage |
fromFile(String path)
Returns a MapiMessage instance which is loaded from the specified file. |
static MapiMessage |
fromProperties(MapiPropertyCollection properties)
Creates an instance of MapiMessage from a collection of Mapi properties. |
static MapiMessage |
fromStream(InputStream stream)
Returns a MapiMessage instance which is loaded from the specified file. |
MapiNamedPropertyMappingStorage |
getNamedPropertyMapping()
Gets the named property mapping. |
void |
save(OutputStream stream)
|
void |
save(String fileName)
Save message to specified file name. |
static MapiEmbeddedMessage |
toEmbeddedMessage(MapiMessage message)
Converts MapiMessage to MapiEmbeddedMessage |
IMapiMessageItem |
toMapiMessageItem()
Convert MapiMessage to IMapiMessageItem object in dependence with MessageClass Note, that the following message classes are supported by now: IPM.Note, IPM.StickyNote, IPM.Contact. |
Methods inherited from class com.aspose.network.outlook.MapiPropertyContainer |
---|
getCodePage, getProperty, getPropertyBinary, getPropertyBooolean, getPropertyByte, getPropertyDateTime, getPropertyDouble, getPropertyFloat, getPropertyInt, getPropertyLong, getPropertyShort, getPropertyString, getPropertyString, setProperty |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.aspose.network.outlook.IMapiMessageItem |
---|
getBody, getMessageClass, getSubject |
Constructor Detail |
---|
public MapiMessage(MapiPropertyCollection propertyCollection, MapiAttachmentCollection attachmentCollection, MapiRecipientCollection recipientCollection)
MapiPropertyCollection
, MapiAttachmentCollection
and MapiRecipientCollection
.
propertyCollection
- messsage propertiesattachmentCollection
- messsage attachmentsrecipientCollection
- messsage recipientspublic MapiMessage()
public MapiMessage(boolean unicode)
unicode
- determine if message will support unicode or asciiMethod Detail |
---|
public static MapiMessage fromFile(String path) throws Exception
path
- path to file to load message from
Exception
- when message cannot be loadedpublic static MapiMessage fromStream(InputStream stream) throws Exception
stream
- stream to load message from
Exception
- when message cannot be loadedpublic void save(String fileName) throws Exception
fileName
- file to save message
Exception
- when fail to savepublic void save(OutputStream stream) throws Exception
Exception
public MapiNamedPropertyMappingStorage getNamedPropertyMapping()
public static MapiEmbeddedMessage toEmbeddedMessage(MapiMessage message)
MapiMessage
to MapiEmbeddedMessage
message
- mapi message to convert
public static MapiMessage fromProperties(MapiPropertyCollection properties) throws Exception
properties
- A collection of MapiProperty
Exception
public IMapiMessageItem toMapiMessageItem() throws Exception
UnsupportedOperationException
- Thrown when MessageClass doesn't belong to IPM.Note, IPM.StickyNote, IPM.Contact
Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |