|
||||||||||
| 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(InputStream in,
String boundary)
|
|
MIMEMessage(InputStream in,
String boundary,
MIMEConfig config)
Creates a MIME message from the content's stream. |
|
| Method Summary | |
|---|---|
List<MIMEPart> |
getAttachments()
Gets all the attachments by parsing the entire MIME message. |
MIMEPart |
getPart(int index)
Creates nth attachment lazily. |
MIMEPart |
getPart(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(InputStream in,
String boundary)
MIMEMessage(InputStream, String, MIMEConfig)
public MIMEMessage(InputStream in,
String boundary,
MIMEConfig config)
in - MIME message streamboundary - the separator for parts(pass it without --)config - various configuration parameters| Method Detail |
|---|
public List<MIMEPart> getAttachments()
public MIMEPart getPart(int index)
index - sequential order of the part. starts with zero.
public MIMEPart getPart(String contentId)
contentId - Content-ID of the part, expects Content-ID without <, >
public final void parseAll()
public boolean makeProgress()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||