FileInspector
using OutsideIn;
using System.IO;
namespace kCura.WinEDDS
{
public class FileInspector : IFileInspector
{
private readonly Exporter _exporter;
public FileInspector()
{
_exporter = OutsideIn.NewLocalExporter();
}
public FileFormat GetFileFormatByFilePath(string filePath)
{
return _exporter.Identify(new System.IO.FileInfo(filePath));
}
FileFormat IFileInspector.GetFileFormatByFilePath(string filePath)
{
return this.GetFileFormatByFilePath(filePath);
}
}
}