public class MimeHelper extends Object
Modifier and Type | Field and Description |
---|---|
protected int |
markSize |
protected javax.mail.Multipart |
theMultipart |
Constructor and Description |
---|
MimeHelper() |
MimeHelper(javax.mail.Multipart mp) |
Modifier and Type | Method and Description |
---|---|
BodyPartHelper |
getBodyPartHelper(int i) |
javax.mail.BodyPart[] |
getBodyParts()
get all the parts of of a multipart an
|
int |
getCount() |
javax.mail.BodyPart |
getCreatePartByCID(String cid)
get the MIME BodyPart from a multiPart package with a given cid create one if it does not exist;
|
int |
getMarkSize() |
javax.mail.Multipart |
getMultiPart() |
javax.mail.BodyPart |
getPartByCID(String cid)
get the MIME BodyPart from a multiPart package with a given cid
|
BodyPartHelper |
getPartHelperByCID(String cid)
get the MIME BodyPart from a multiPart package with a given cid
|
void |
setMarkSize(int markSize)
the maximum stream mark for resetting
|
protected javax.mail.Multipart theMultipart
protected int markSize
public MimeHelper()
public MimeHelper(javax.mail.Multipart mp)
mp
- public int getCount()
public javax.mail.Multipart getMultiPart()
public javax.mail.BodyPart getCreatePartByCID(String cid)
cid
- the cid of the requested bodypartpublic javax.mail.BodyPart getPartByCID(String cid)
cid
- the cid of the requested bodypartpublic BodyPartHelper getPartHelperByCID(String cid)
cid
- the cid of the requested bodypartpublic BodyPartHelper getBodyPartHelper(int i)
i
- public javax.mail.BodyPart[] getBodyParts()
public int getMarkSize()
public void setMarkSize(int markSize)
markSize
- the markSize to setCopyright © 2018. All rights reserved.