merge FileTypeMap into FileType class and expose it to the public api