|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jvnet.mimepull.MIMEMessage
public class MIMEMessage
Represents MIME message. MIME message parsing is done lazily using a pull parser.
Constructor Summary | |
---|---|
MIMEMessage(java.io.InputStream in,
java.lang.String boundary)
|
|
MIMEMessage(java.io.InputStream in,
java.lang.String boundary,
MIMEConfig config)
Creates a MIME message from the content's stream. |
Method Summary | |
---|---|
java.util.List<MIMEPart> |
getAttachments()
Gets all the attachments by parsing the entire MIME message. |
MIMEPart |
getPart(int index)
Creates nth attachment lazily. |
MIMEPart |
getPart(java.lang.String contentId)
Creates a lazy attachment for a given Content-ID. |
boolean |
makeProgress()
Parses the MIME message in a pull fashion. |
void |
parseAll()
Parses the whole MIME message eagerly |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MIMEMessage(java.io.InputStream in, java.lang.String boundary)
MIMEMessage(InputStream, String, MIMEConfig)
public MIMEMessage(java.io.InputStream in, java.lang.String boundary, MIMEConfig config)
in
- MIME message streamboundary
- the separator for parts(pass it without --)config
- various configuration parametersMethod Detail |
---|
public java.util.List<MIMEPart> getAttachments()
public MIMEPart getPart(int index)
index
- sequential order of the part. starts with zero.
public MIMEPart getPart(java.lang.String contentId)
contentId
- Content-ID of the part, expects Content-ID without <, >
public void parseAll()
public boolean makeProgress()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |