Class TypeHandler

Superclasses :
util::Error
Subclasses :
mail::MessageHandler
mail::MultipartHandler
mail::TextHandler
Package :
mail

Handles the conversion from decoded content to an object

Source

Class summary
Methods inherited from util::Error
error(a) get_reason()
Variables inherited from util::Error
reason
Methods defined in this class
can_handle(ct) convert_from_object(m, obj) convert_to_object(m, data)

Method detail

can_handle(ct)

Succeed if this object can handle the given ContentType
Parameters :
ct - the ContentType
Source

convert_from_object(m, obj)

Create string data from the given object
Parameters :
m - the Message
obj - the object to convert
Source

convert_to_object(m, data)

Convert the given data to an object
Parameters :
m - the Message
data - the string sourcedata
Source