Class | Description | |
---|---|---|
AbstractContentHandler |
Abstract ContentHandler with default implementations of all
the methods of the ContentHandler interface.
| |
BodyDescriptor |
Encapsulates the values of the MIME-specific header fields
(which starts with Content-).
| |
CloseShieldStream |
InputStream that shields its underlying input stream from
being closed.
| |
EOLConvertingInputStream |
InputStream which converts \r
bytes not followed by \n and \n not
preceded by \r to \r\n.
| |
LicenseHelper | ||
MimeBoundaryInputStream |
Stream that constrains itself to a single MIME body part.
After the stream ends (i.e. read() returns -1) HasMoreParts
can be used to determine if a final boundary has been seen or not.
If ParentEOF is true an unexpected end of stream
has been detected in the parent stream.
| |
MimeStreamParser | ||
RootInputStream | InputStream used by the parser to wrap the original user
supplied stream. This stream keeps track of the current line number and
can also be truncated. When truncated the stream will appear to have
reached end of file. This is used by the parser's
Stop method.
|
Interface | Description | |
---|---|---|
IContentHandler | Receives notifications of the content of a plain RFC822 or MIME message. Implement this interface and register an instance of that implementation with a MimeStreamParser instance using its {@link org.mime4j.MimeStreamParser#setContentHandler(ContentHandler)} method. The parser uses the ContentHandler instance to report basic message-related events like the start and end of the body of a part in a multipart MIME entity. Events will be generated in the order the corresponding elements occur in the message stream parsed by the parser. E.g.: startMessage() startHeader() field(...) field(...) ... endHeader() startMultipart() preamble(...) startBodyPart() startHeader() field(...) field(...) ... endHeader() body() endBodyPart() startBodyPart() startHeader() field(...) field(...) ... endHeader() body() endBodyPart() epilogue(...) endMultipart() endMessage() See MIME RFCs 2045-2049 for more information on the structure of MIME messages and RFC 822 and 2822 for the general structure of Internet mail messages. |
Enumeration | Description | |
---|---|---|
EOLConvertingInputStream BehaviourType |