|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.james.mime4j.message.Multipart
public class Multipart
Represents a MIME multipart body (see RFC 2045).A multipart body has a ordered list of body parts. The multipart body also has a preamble and epilogue. The preamble consists of whatever characters appear before the first body part while the epilogue consists of whatever characters come after the last body part.
Constructor Summary | |
---|---|
Multipart(java.lang.String subType)
Creates a new empty Multipart instance. |
Method Summary | |
---|---|
void |
addBodyPart(BodyPart bodyPart)
Adds a body part to the end of the list of body parts. |
java.util.List |
getBodyParts()
Gets the list of body parts. |
java.lang.String |
getEpilogue()
Gets the epilogue. |
Entity |
getParent()
Gets the parent of this body. |
java.lang.String |
getPreamble()
Gets the preamble. |
java.lang.String |
getSubType()
Gets the multipart sub-type. |
void |
setBodyParts(java.util.List bodyParts)
Sets the list of body parts. |
void |
setEpilogue(java.lang.String epilogue)
Sets the epilogue. |
void |
setParent(Entity parent)
Sets the parent of this body. |
void |
setPreamble(java.lang.String preamble)
Sets the preamble. |
void |
setSubType(java.lang.String subType)
Sets the multipart sub-type. |
void |
writeTo(java.io.OutputStream out,
int mode)
Write the Multipart to the given OutputStream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Multipart(java.lang.String subType)
Multipart
instance.
Method Detail |
---|
public java.lang.String getSubType()
alternative
(the default)
or parallel
. See RFC 2045 for common sub-types and their
meaning.
public void setSubType(java.lang.String subType)
alternative
or parallel
. See RFC 2045 for common sub-types and their
meaning.
subType
- the sub-type.public Entity getParent()
Body
getParent
in interface Body
Body.getParent()
public void setParent(Entity parent)
Body
setParent
in interface Body
parent
- the parent.Body.setParent(org.apache.james.mime4j.message.Entity)
public java.lang.String getEpilogue()
public void setEpilogue(java.lang.String epilogue)
epilogue
- the epilogue.public java.util.List getBodyParts()
BodyPart
objects.public void setBodyParts(java.util.List bodyParts)
bodyParts
- the new list of BodyPart
objects.public void addBodyPart(BodyPart bodyPart)
bodyPart
- the body part.public java.lang.String getPreamble()
public void setPreamble(java.lang.String preamble)
preamble
- the preamble.public void writeTo(java.io.OutputStream out, int mode) throws java.io.IOException, MimeException
writeTo
in interface Body
out
- the OutputStream to write tomode
- compatibility mode
java.io.IOException
- if case of an I/O error
MimeException
- if case of a MIME protocol violation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |