@staticmethod
def _get_file_format_info(format_name, table_type, table_name):
    """ returns file extension + dict of required parameters for
        Table.write"""
    if format_name == 'fits':
        return 'fits.gz', dict()
    elif format_name == 'ecsv':
        return 'ecsv.txt', dict(format='ascii.ecsv')
    elif format_name == 'hdf5':
        return 'h5', dict(path='/' + table_type + '/' + table_name)
    else:
        raise NameError('format not supported')
