org.apache.manifoldcf.crawler.interfaces
Interface IFingerprintActivity

All Known Subinterfaces:
IProcessActivity, IVersionActivity
All Known Implementing Classes:
WorkerThread.ProcessActivity, WorkerThread.VersionActivity

public interface IFingerprintActivity

This interface abstracts from the activities that handle document fingerprinting and mime type acceptance.


Field Summary
static java.lang.String _rcsid
           
 
Method Summary
 boolean checkDocumentIndexable(java.io.File localFile)
          Check whether a document is indexable by the currently specified output connector.
 boolean checkMimeTypeIndexable(java.lang.String mimeType)
          Detect if a mime type is indexable or not.
 

Field Detail

_rcsid

static final java.lang.String _rcsid
See Also:
Constant Field Values
Method Detail

checkMimeTypeIndexable

boolean checkMimeTypeIndexable(java.lang.String mimeType)
                               throws ManifoldCFException,
                                      ServiceInterruption
Detect if a mime type is indexable or not. This method is used by participating repository connectors to pre-filter the number of unusable documents that will be passed to this output connector.

Parameters:
mimeType - is the mime type of the document.
Returns:
true if the mime type is indexable by this connector.
Throws:
ManifoldCFException
ServiceInterruption

checkDocumentIndexable

boolean checkDocumentIndexable(java.io.File localFile)
                               throws ManifoldCFException,
                                      ServiceInterruption
Check whether a document is indexable by the currently specified output connector.

Parameters:
localFile - is the local copy of the file to check.
Returns:
true if the document is indexable.
Throws:
ManifoldCFException
ServiceInterruption