public class Message extends Object
Message
class encapsulates a TNEF message.Constructor and Description |
---|
Message()
Constructs an empty Message.
|
Message(TNEFInputStream in)
Constructs a Message using the given TNEFInputStream.
|
Modifier and Type | Method and Description |
---|---|
void |
addAttachment(Attachment attachment)
Adds an attachment to this message.
|
void |
addAttribute(Attr attr)
Adds an attribute to this message.
|
List |
getAttachments()
Gets the Message attachments.
|
Attr |
getAttribute(int ID)
Gets a specific Message attribute.
|
List |
getAttributes()
Gets the Message attributes.
|
MAPIProps |
getMAPIProps()
Gets the Message MAPI properties.
|
String |
getOEMCodePage()
Gets the charset name corresponding to the
attOemCodepage attribute. |
protected void |
read(TNEFInputStream in)
Reads all Message contents from the given TNEFInputStream.
|
void |
setAttachments(List attachments)
Sets the Message attachments.
|
void |
setAttributes(List attributes)
Sets the Message attributes.
|
String |
toString()
Returns a string representation of this object.
|
public Message()
public Message(TNEFInputStream in) throws IOException
in
- the TNEFInputStream containing message dataIOException
- if an I/O error occursprotected void read(TNEFInputStream in) throws IOException
in
- the TNEFInputStream containing message dataIOException
- if an I/O error occurspublic MAPIProps getMAPIProps() throws IOException
IOException
- if an I/O error occurspublic String getOEMCodePage()
attOemCodepage
attribute.attOemCodepage
attribute is invalid or does not existpublic List getAttributes()
public void setAttributes(List attributes)
attributes
- the Message attributespublic Attr getAttribute(int ID)
ID
- the requested attribute IDpublic List getAttachments()
public void setAttachments(List attachments)
attachments
- the Message attachmentspublic void addAttribute(Attr attr)
attr
- an attribute to add to this messagepublic void addAttachment(Attachment attachment)
attachment
- an attachment to add to this messageThis software is published under the BSD license. Copyright © 2003-${build.year}, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.