def __init__(self, handler_function, component_type, char_encoding='utf-8'):
        """
        :param handler_function: the handler function to execute for each message
        :param component_type: Processor, Sink, or Source
        :param char_encoding: the character encoding to use (default is 'utf-8')
        """

        MessageHandler.__init__(self, handler_function, component_type, char_encoding)
        self.TERMINATOR = '\n'
def __init__ ( self , handler_function , component_type , char_encoding = 'utf-8' ) : MessageHandler . __init__ ( self , handler_function , component_type , char_encoding ) self . TERMINATOR = '\n'
:param handler_function: the handler function to execute for each message
        :param component_type: Processor, Sink, or Source
        :param char_encoding: the character encoding to use (default is 'utf-8')