GMime.Parser – gmime-3.0 Reference Manual
Packages
gmime-3.0
GMime
Parser
Parser
Parser.with_stream
construct_message
construct_part
eos
get_format
get_headers_begin
get_headers_end
get_mbox_marker
get_mbox_marker_offset
get_persist_stream
get_respect_content_length
init_with_stream
set_format
set_persist_stream
set_respect_content_length
tell
Parser
Object Hierarchy:
Description:
[
CCode
( type_id =
"g_mime_parser_get_type ()"
) ]
public
class
Parser
:
Object
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
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref