#
# $Id: typehandler.icn,v 1.1 2004/02/12 17:07:57 rparlett Exp $
#

package mail

import util

#
# Handles the conversion from decoded content to an object
#
class TypeHandler:Error()
   #
   # Succeed if this object can handle the given {ContentType}
   #
   # @param ct the {ContentType}
   #
   abstract method can_handle(ct)

   #
   # Convert the given data to an object
   #
   # @param m the {Message}
   # @param data the string sourcedata
   #
   abstract method convert_to_object(m, data)

   #
   # Create string data from the given object
   #
   # @param m the {Message}
   # @param obj the object to convert
   #
   abstract method convert_from_object(m, obj)
end