net.freeutils.tnef
public class Message extends Object
Message
class encapsulates a TNEF message.
Since: 2003-04-25
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
{@code 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.
|
Parameters: in the TNEFInputStream containing message data
Throws: IOException if an I/O error occurs
Parameters: attachment an attachment to add to this message
Parameters: attr an attribute to add to this message
Returns: the Message attachments
Parameters: ID the requested attribute ID
Returns: the requested Message attribute, or null if no such attribute exists
Returns: the Message attributes
Returns: the Message MAPI properties, or null of none exist
Throws: IOException if an I/O error occurs
Returns: the charset name, or null if the {@code attOemCodepage} attribute is invalid or does not exist
Parameters: in the TNEFInputStream containing message data
Throws: IOException if an I/O error occurs
Parameters: attachments the Message attachments
Parameters: attributes the Message attributes
Returns: a string representation of this object