|
|||||||||
| Home >> All >> javax >> [ mail overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
javax.mail
Class Multipart

java.lang.Objectjavax.mail.Multipart
- public abstract class Multipart
- extends java.lang.Object
A container for multiple BodyParts.
- Version:
- $Rev: 126350 $ $Date: 2005-01-24 22:35:47 -0800 (Mon, 24 Jan 2005) $
| Field Summary | |
protected java.lang.String |
contentType
The content type of this multipart object; defaults to "multipart/mixed" |
protected Part |
parent
The Part that contains this multipart. |
protected java.util.Vector |
parts
Vector of sub-parts. |
| Constructor Summary | |
protected |
Multipart()
|
| Method Summary | |
void |
addBodyPart(BodyPart part)
Add a part to the end of the list. |
void |
addBodyPart(BodyPart part,
int pos)
Insert a part into the list at a designated point; all subsequent parts move down |
BodyPart |
getBodyPart(int index)
Get the specified part; numbering starts at zero. |
java.lang.String |
getContentType()
Return the content type. |
int |
getCount()
Return the number of enclosed parts |
Part |
getParent()
Return the Part containing this Multipart object or null if unknown. |
boolean |
removeBodyPart(BodyPart part)
Remove the supplied part from the list. |
void |
removeBodyPart(int index)
Remove the specified part; all others move down one |
protected void |
setMultipartDataSource(MultipartDataSource mds)
Initialize this multipart object from the supplied data source. |
void |
setParent(Part part)
Set the parent of this Multipart object |
abstract void |
writeTo(java.io.OutputStream out)
Encode and write this multipart to the supplied OutputStream; the encoding used is determined by the implementation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
parts
protected java.util.Vector parts
- Vector of sub-parts.
contentType
protected java.lang.String contentType
- The content type of this multipart object; defaults to "multipart/mixed"
parent
protected Part parent
- The Part that contains this multipart.
| Constructor Detail |
Multipart
protected Multipart()
| Method Detail |
setMultipartDataSource
protected void setMultipartDataSource(MultipartDataSource mds) throws MessagingException
- Initialize this multipart object from the supplied data source.
This adds any BodyParts into this object and initializes the content type.
getContentType
public java.lang.String getContentType()
- Return the content type.
getCount
public int getCount()
throws MessagingException
- Return the number of enclosed parts
getBodyPart
public BodyPart getBodyPart(int index) throws MessagingException
- Get the specified part; numbering starts at zero.
removeBodyPart
public boolean removeBodyPart(BodyPart part) throws MessagingException
- Remove the supplied part from the list.
removeBodyPart
public void removeBodyPart(int index)
throws MessagingException
- Remove the specified part; all others move down one
addBodyPart
public void addBodyPart(BodyPart part) throws MessagingException
- Add a part to the end of the list.
addBodyPart
public void addBodyPart(BodyPart part, int pos) throws MessagingException
- Insert a part into the list at a designated point; all subsequent parts move down
writeTo
public abstract void writeTo(java.io.OutputStream out) throws java.io.IOException, MessagingException
- Encode and write this multipart to the supplied OutputStream; the encoding
used is determined by the implementation.
getParent
public Part getParent()
- Return the Part containing this Multipart object or null if unknown.
setParent
public void setParent(Part part)
- Set the parent of this Multipart object
|
|||||||||
| Home >> All >> javax >> [ mail overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
javax.mail.Multipart