function exts = getIOFileExtensions(h,item)

%   Copyright 2014 The MathWorks, Inc.

if strcmpi( item, 'input' )
    keys = h.InputFileExtensions;
elseif strcmpi( item, 'output' )
    keys = h.OutputFileExtensions;
else
    error( message( 'CoderFoundation:utility:InvalidInputToFunctionSpecific', item, 'ToolchainInfo::getFileExtensions()' ) );
end
% Get the requested list of file extensions
exts = cell( 1, numel( keys ) );
for i = 1:numel( keys )
    if h.FileExtensions.isKey( keys{ i } )
        exts{ i } = h.getFileExtension( keys{ i } );
    else
        exts{ i } = keys{ i };
    end
end
end
