com.armatiek.infofuze.source.extractor
Class FileExtractor

java.lang.Object
  extended by com.armatiek.infofuze.source.extractor.FileExtractor
All Implemented Interfaces:
IOFileFilter
Direct Known Subclasses:
DirectoryFileExtractor, FileFileExtractor

public abstract class FileExtractor
extends java.lang.Object
implements IOFileFilter

Abstract base class for classes that represents a concrete specific file extractor. The class implements IOFileFilter and thus can be used to determine if a specific FileIf is accepted by this extractor definition. It contains the logic to interpret the configuration file and build the hierarchy of specific file filter classes.

Author:
Maarten Kroon

Field Summary
static org.slf4j.Logger logger
           
 
Constructor Summary
FileExtractor(org.w3c.dom.Element configElem)
           
FileExtractor(IOFileFilter fileFilter)
           
 
Method Summary
 boolean accept(FileIf file)
          Checks to see if the FileIf should be accepted by this filter.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

public static final org.slf4j.Logger logger
Constructor Detail

FileExtractor

public FileExtractor(IOFileFilter fileFilter)

FileExtractor

public FileExtractor(org.w3c.dom.Element configElem)
              throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

accept

public boolean accept(FileIf file)
Description copied from interface: IOFileFilter
Checks to see if the FileIf should be accepted by this filter.

Specified by:
accept in interface IOFileFilter
Parameters:
file - the FileIf to check
Returns:
true if this file matches the test