private void CheckFileNames(ICollection<string> files)
{
Regex r = IndexFileNames.CODEC_FILE_PATTERN;
foreach (string file in files)
{
if (!r.IsMatch(file))
{
throw new System.ArgumentException("invalid codec filename '" + file + "', must match: " + IndexFileNames.CODEC_FILE_PATTERN.ToString());
}
}
}