<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def check(self, url_data):
 """Extracts urls from the file."""

        content = url_data.get_content()
        self._check_by_re(url_data, content)
        self._check_inline_links(url_data, content)