Gcr.Parsed

Fields

None

Methods

class

unref (parsed)

get_attributes ()

get_bytes ()

get_data ()

get_description ()

get_filename ()

get_format ()

get_label ()

ref ()

Details

class Gcr.Parsed

A parsed item parsed by a Gcr.Parser.

classmethod unref(parsed)[source]
Parameters:

parsed (object or None) – a parsed item

Unreferences a parsed item which was referenced with Gcr.Parsed.ref()

get_attributes()[source]
Returns:

the attributes for the item; these are owned by the parsed item and should not be freed

Return type:

Gck.Attributes or None

Get the attributes which make up the parsed item.

get_bytes()[source]
Returns:

the raw data of the parsed item, or None

Return type:

GLib.Bytes

Get the raw data block for the parsed item.

get_data()[source]
Returns:

the raw data of the parsed item, or None

Return type:

bytes or None

Get the raw data block for the parsed item.

get_description()[source]
Returns:

the description

Return type:

str or None

Get the descirption for a parsed item.

get_filename()[source]
Returns:

the filename of the parsed item, or None

Return type:

str

Get the filename of the parsed item.

get_format()[source]
Returns:

the data format of the item

Return type:

Gcr.DataFormat

Get the format of the parsed item.

get_label()[source]
Returns:

the label for the item

Return type:

str or None

Get the label for the parsed item.

ref()[source]
Returns:

the parsed item

Return type:

Gcr.Parsed

Add a reference to a parsed item. An item may not be shared across threads until it has been referenced at least once.