public interface RootOnlyCodec extends Codec(Code)
Codec that works only on the root part of the MIME/multipart.
It doesn't work on the attachment parts, so it takes
AttachmentSet as an argument and creates a corresponding
Message . This enables
attachments to be parsed lazily by wrapping the mimepull parser into an
AttachmentSet author: Jitendra Kotamraju
Reads root part bytes from
InputStream and constructs a
Message along with the given attachments.
Parameters: in - root part's data Parameters: contentType - root part's MIME content type (like "application/xml") Parameters: packet - the new created Message is set in this packet Parameters: att - attachments throws: IOException - if InputStream throws an exception.