| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
a message body part
| Method Summary | |
|  void | clearContent()reset the part's content to "". | 
|  void | setContent(byte[] content,
           java.lang.String enc)set the content of this message part using the specified byte array | 
|  void | setContent(java.io.InputStream is,
           java.lang.String enc)set the content of this message part using the specified byte array | 
|  void | setContent(java.lang.String content)set the content of this message part using the specified String object | 
|  void | setContent(java.lang.String content,
           java.lang.String contentType)set the content of this message part using the specified String object | 
|  void | setContentName(java.lang.String name)sets the name of this mesage part | 
|  void | setContentType(java.lang.String contentType)sets the value of the Content-type header for this part | 
| Methods inherited from interface org.netbeans.lib.collab.ReadOnlyMessagePart | 
| getBytes, getContent, getContent, getContentEncoding, getContentID, getContentName, getContentType, getInputStream, getSize | 
| Method Detail | 
public void setContent(byte[] content,
                       java.lang.String enc)
                throws CollaborationException
content - content of the messageenc - content encoding.  If non-null, this value is used to 
 reset the content encoding for this part.
CollaborationException
public void setContent(java.io.InputStream is,
                       java.lang.String enc)
                throws CollaborationException
is - content streamenc - content encoding.  If non-null, this value is used to 
 reset the content encoding for this part.
CollaborationException
public void setContent(java.lang.String content)
                throws CollaborationException
content - content of the message
CollaborationException
public void setContent(java.lang.String content,
                       java.lang.String contentType)
                throws CollaborationException
content - content of the messagecontentType - contentType of the message
CollaborationException
public void clearContent()
                  throws CollaborationException
CollaborationException
public void setContentType(java.lang.String contentType)
                    throws CollaborationException
contentType - MIME or extended content-type value.
  Example: text/xml
CollaborationException
public void setContentName(java.lang.String name)
                    throws CollaborationException
name - filename  Example: image.gif
CollaborationException| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||