Parser
Object Hierarchy:
Description:
A MIME parser context.
Namespace: GMime
Package: gmime-3.0
Content:
Creation methods:
- public Parser ()
Creates a new parser object.
- public Parser.with_stream (Stream stream)
Creates a new parser object preset to parse
stream
.
Methods:
- public Message? construct_message (ParserOptions? options)
Constructs a MIME message from this.
- public Object? construct_part (ParserOptions? options)
Constructs a MIME part from this.
- public bool eos ()
Tests the end-of-stream indicator for this 's internal stream.
- public Format get_format ()
Gets the format that the parser is set to parse.
- public int64 get_headers_begin ()
Gets the stream offset of the beginning of the headers of the most recently parsed message.
- public int64 get_headers_end ()
Gets the stream offset of the end of the headers of the most recently parsed message.
- public string? get_mbox_marker ()
Gets the mbox-style From-line of the most recently parsed message (gotten from construct_message).
- public int64 get_mbox_marker_offset ()
Gets the offset of the most recently parsed mbox-style From-line (gotten from construct_message).
- public bool get_persist_stream ()
Gets whether or not the underlying stream is persistent.
- public bool get_respect_content_length ()
Gets whether or not this is set to use Content-Length for determining the offset of the end of the message.
- public void init_with_stream (Stream stream)
Initializes this to use
stream
. - public void set_format (Format format)
Sets the format that the parser should expect the stream to be in.
- public void set_persist_stream (bool persist)
Sets whether or not the this's underlying stream is persistent.
- public void set_respect_content_length (bool respect_content_length)
Sets whether or not this should respect Content-Length headers when deciding where to look for the start of the next message.
- public int64 tell ()
Gets the current stream offset from the parser's internal stream.
Inherited Members:
All known members inherited from class GLib.Object