@classmethod
def detect(cls, stream):
    """Detect the file format given a filename.
        Return True if a stream is this file format.

        .. versionchanged:: 0.9.0
            Changed from a static method to a class method.
        """
    raise NotImplementedError('Must implement a "detect" class method.')
