|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.funambol.mail.Multipart
public class Multipart
Represents a container for BodyPart
s in multi-part
Message
s as per RFC 2046
Constructor Summary | |
---|---|
Multipart()
Constructs a Multipart object of the given content type. |
Method Summary | |
---|---|
void |
addBodyPart(BodyPart part)
Insert the part at the end of the MultiPart. |
void |
addBodyPart(BodyPart part,
int index)
Insert the part at the specified index. |
void |
deserialize(java.io.DataInputStream din)
|
BodyPart |
getBodyPart(int index)
Get the BodyPart at the specified index. |
Part |
getContainer()
Return the container object for this Multipart. |
int |
getCount()
Retrieves the number of body parts contained in this multi-part |
void |
removeBodyPart(int index)
Removes the BodyPart at the specified index. |
void |
serialize(java.io.DataOutputStream dout)
|
void |
setContainer(Part container)
Set the container object for this Multipart. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Multipart()
BodyParts can be added later
Method Detail |
---|
public Part getContainer()
Message
or a BodyPart
public void setContainer(Part container)
container
- public void addBodyPart(BodyPart part)
part
- The BodyPart to be added to this Multipart containerpublic void addBodyPart(BodyPart part, int index)
part
- The BodyPart to be added to this Multipart containerindex
- The positionpublic BodyPart getBodyPart(int index)
index
- the index of the BodyPart
public void removeBodyPart(int index)
index
- the index of the BodyPartpublic int getCount()
public void serialize(java.io.DataOutputStream dout) throws java.io.IOException
java.io.IOException
public void deserialize(java.io.DataInputStream din) throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |