FilterLoader finds the dll and ClassID of the COM object responsible for filtering a specific file extension. It then loads that dll, creates the appropriate COM object and returns a pointer to an IFilter instance
Esempio n. 1
0
 public FilterReader(string fileName)
 {
     _filter = FilterLoader.LoadAndInitIFilter(fileName);
     if (_filter == null)
     {
         throw new ArgumentException("no filter defined for " + fileName);
     }
 }
Esempio n. 2
0
 public FilterReader(string fileName)
 {
     m_Filter = FilterLoader.LoadAndInitIFilter(fileName);
     if (m_Filter == null)
     {
         throw new ArgumentException(string.Format("no filter defined for {0}", fileName));
     }
 }
Esempio n. 3
0
 public FilterReader(string fileName)
 {
     string ext = Path.GetExtension(fileName);
     //if (GlobalData.Instance.SkipIFilters.Contains(ext))
     //    _filter = null;
     //else
     {
         // cache extensions that have an ifilter
         _filter = FilterLoader.LoadAndInitIFilter(fileName);
         if (_filter == null)
         {
             //GlobalData.Instance.SkipIFilters.Add(ext);
             //_log.Error("no filter defined for " + fileName);
         }
     }
 }