|
||||||||||
| 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.Attachment
public class Attachment
The Attachment class encapsulates a TNEF message attachment.
| 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(OutputStream out)
Writes the content of this attachment to a stream. |
void |
writeTo(String filename)
Writes the content of this attachment to a file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Attachment()
| Method Detail |
|---|
public List getAttributes()
public void setAttributes(List attributes)
attributes - the Attachment attributespublic Attr getAttribute(int ID)
ID - the requested attribute ID
public String getFilename()
public void setFilename(String filename)
filename - the Attachment filenamepublic void addAttribute(Attr attr)
attr - the Attachment attribute to addpublic RawInputStream getRawData()
public void setRawData(RawInputStream rawData)
rawData - the Attachment raw datapublic Message getNestedMessage()
public void setNestedMessage(Message nestedMessage)
nestedMessage - the Attachment nested messagepublic MAPIProps getMAPIProps()
public String toString()
toString in class Object
public void setMAPIProps(MAPIProps MAPIProps)
throws IOException
MAPIProps - a collection of properties to set
IOException - if an I/O error occurs
public void writeTo(String filename)
throws IOException
filename - the fully qualified filename to which the attachment
content should be written
IOException - if an I/O error occurs
public void writeTo(OutputStream out)
throws IOException
out - the OutputStream to which the attachment
content should be written
IOException - if an I/O error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||