@classmethod
def fromFile(cls, filename):
    """
        Constructs bit stream reader from file.

        :param filename: Filename to read as a bit stream.
        """
    with open(filename, 'rb') as file:
        return cls(file.read())
