@classmethod
def add_parser(cls, obj):
    """Decorator method used to register a parser to the class parsing repertoire.

        obj is required to implement key attribute supporting bytes as returned by KLVParser key.
        """
    cls.parsers[bytes(obj.key)] = obj
    return obj
