|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.mirrorworlds.lifestreams.mail.tnef.TnefAttachment
Tnef Message Attachment
Constructor Summary | |
TnefAttachment(TnefMessage parent)
Constructs a TnefAttachment. |
Method Summary | |
java.util.Enumeration |
attributes()
|
java.lang.String |
getAttribute(java.lang.String name)
|
byte[] |
getContentBytes()
|
int |
getContentLength()
|
java.lang.String |
getContentType()
|
java.util.Date |
getDate()
Returns the date (modified) date of this attachment. |
java.lang.String |
getFilename()
|
java.io.InputStream |
getInputStream()
|
TnefMessage |
getParent()
Returns the TnefMessage parent. |
TnefRendData |
getRendData()
|
void |
printInfo()
Prints debug information. |
void |
setAttribute(java.lang.String name,
java.lang.String value)
Sets the attachment attributes such as content-type etc. |
void |
setData(byte[] data)
Sets (by the builder) the attachment data. |
void |
setDate(java.util.Date d)
Sets the date associate with this attachment. |
void |
setRendData(TnefRendData rendData)
Sets (by the builder) the associated RendData object. |
void |
writeTo(java.io.OutputStream out)
Writes the attachment content (binary) to an output stream (useful for saving attachments. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public TnefAttachment(TnefMessage parent)
parent
- message parent.Method Detail |
public TnefMessage getParent()
TnefMessage
parent.public java.lang.String getContentType()
public java.lang.String getFilename()
public int getContentLength()
public byte[] getContentBytes()
public java.lang.String getAttribute(java.lang.String name)
public java.util.Enumeration attributes()
public TnefRendData getRendData()
public void setRendData(TnefRendData rendData)
rendData
- rend data associated with this attachment.public void setAttribute(java.lang.String name, java.lang.String value)
name
- attribute namevalue
- value of attribute.public void setDate(java.util.Date d)
public java.util.Date getDate()
public void setData(byte[] data)
public java.io.InputStream getInputStream()
public void writeTo(java.io.OutputStream out) throws java.io.IOException
public void printInfo()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |