|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opencrx.application.uses.net.freeutils.tnef.Message
public class Message
The Message class encapsulates a TNEF message.
| Constructor Summary | |
|---|---|
Message()
Constructs an empty Message. |
|
Message(TNEFInputStream in)
Constructs a Message using the given TNEFInputStream. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Message()
public Message(TNEFInputStream in)
throws IOException
in - the TNEFInputStream containing message data
IOException - if an I/O error occurs| Method Detail |
|---|
protected void read(TNEFInputStream in)
throws IOException
in - the TNEFInputStream containing message data
IOException - if an I/O error occurs
public 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 ID
public 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 messagepublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||