net.freeutils.tnef
public class Attachment extends Object
Attachment
class encapsulates a TNEF message attachment.
Since: 2003-04-25
Constructor Summary | |
---|---|
Attachment()
Constructs an empty Attachment. |
Method Summary | |
---|---|
void | addAttribute(Attr attr)
Adds an Attachment attribute.
|
Attr | getAttribute(int ID)
Gets a specific Attachment attribute.
|
List | getAttributes()
Gets the Attachment attributes.
|
String | getFilename()
Gets the Attachment filename.
|
MAPIProps | getMAPIProps()
Gets the Attachment MAPI properties.
|
Message | getNestedMessage()
Gets the Attachment nested message.
|
RawInputStream | getRawData()
Gets the Attachment raw data.
|
void | setAttributes(List attributes)
Sets the Attachment attributes.
|
void | setFilename(String filename)
Sets the Attachment filename.
|
void | setMAPIProps(MAPIProps MAPIProps)
Sets this Attachment's MAPI properties. |
void | setNestedMessage(Message nestedMessage)
Sets the Attachment nested message.
|
void | setRawData(RawInputStream rawData)
Sets the Attachment raw data.
|
String | toString()
Returns a string representation of this object.
|
void | writeTo(String filename)
Writes the content of this attachment to a file.
|
void | writeTo(OutputStream out)
Writes the content of this attachment to a stream.
|
Parameters: attr the Attachment attribute to add
Parameters: ID the requested attribute ID
Returns: the requested Attachment attribute, or null if no such attribute exists
Returns: the Attachment attributes
Returns: the Attachment filename, or null if none exists
Returns: the Attachment MAPI properties
Returns: the Attachment nested message
Returns: the Attachment raw data
Parameters: attributes the Attachment attributes
Parameters: filename the Attachment filename
Parameters: MAPIProps a collection of properties to set
Throws: IOException if an I/O error occurs
Parameters: nestedMessage the Attachment nested message
Parameters: rawData the Attachment raw data
Returns: a string representation of this object
Parameters: filename the fully qualified filename to which the attachment content should be written
Throws: IOException if an I/O error occurs
Parameters: out the OutputStream to which the attachment content should be written
Throws: IOException if an I/O error occurs