| java.lang.Object org.jvnet.mimepull.MIMEMessage
MIMEMessage | public class MIMEMessage (Code) | | Represents MIME message. MIME message parsing is done lazily using a
pull parser.
author: Jitendra Kotamraju |
MIMEMessage | public MIMEMessage(InputStream in, String boundary, MIMEConfig config)(Code) | | Creates a MIME message from the content's stream.
Parameters: in - MIME message stream Parameters: boundary - the separator for parts(pass it without --) Parameters: config - various configuration parameters |
getAttachments | public List<MIMEPart> getAttachments()(Code) | | Gets all the attachments by parsing the entire MIME message. Avoid
this if possible since it is an expensive operation.
list of attachments. |
getPart | public MIMEPart getPart(int index)(Code) | | Creates nth attachment lazily. It doesn't validate
if the message has so many attachments. To
do the validation, the message needs to be parsed.
The parsing of the message is done lazily and is done
while reading the bytes of the part.
Parameters: index - sequential order of the part. starts with zero. attachemnt part |
getPart | public MIMEPart getPart(String contentId)(Code) | | Creates a lazy attachment for a given Content-ID. It doesn't validate
if the message contains an attachment with the given Content-ID. To
do the validation, the message needs to be parsed. The parsing of the
message is done lazily and is done while reading the bytes of the part.
Parameters: contentId - Content-ID of the part, expects Content-ID without <, > attachemnt part |
makeProgress | public synchronized boolean makeProgress()(Code) | | Parses the MIME message in a pull fashion.
false if the parsing is completed. |
parseAll | public void parseAll()(Code) | | Parses the whole MIME message eagerly
|
|
|