This provides a way to override the file format detection logic, useful eg for files with wrong extensions or standard input.