MimeParser


Object Hierarchy:

Object hierarchy for MimeParser

Description:

[ CCode ( type_id = "camel_mime_parser_get_type ()" ) ]
public class MimeParser : Object

Core MIME message parser.

MimeParser is the core mail parsing object in Camel. It parses either a raw RFC 822 message or a Berkeley mbox file from a stream or a Unix file descriptor. It is a robust, fast, stack-based state machine that handles all failure cases gracefully — truncated parts, missing multipart boundaries, I/O errors — always producing a valid state sequence.

The parser exposes a simple state machine via step. States follow a well-defined sequence for each message structure element: every "start" state has a matching "end" state, and you can efficiently skip sections you are not interested in.

In addition to parsing, the parser can be used to: - Automatically reformat data as it is parsed. - Efficiently skip sections without reading their content. - Drive MimeFilter instances in a pipelined fashion for zero-copy decoding.

Because MimeParser does its own I/O buffering, initialising it from a file descriptor ( init_with_fd) is more efficient than from a stream.


Namespace: Camel
Package: camel-1.2

Content:

Creation methods:

Methods:

Inherited Members: