org.alfresco.filesys.repo
Interface ContentComparator

All Known Implementing Classes:
CIFSContentComparator

public interface ContentComparator


Method Summary
 boolean isContentEqual(org.alfresco.service.cmr.repository.ContentReader existingContent, java.io.File file)
          Are the two content items equal?
 

Method Detail

isContentEqual

boolean isContentEqual(org.alfresco.service.cmr.repository.ContentReader existingContent,
                       java.io.File file)
Are the two content items equal?

For most cases a simple binary comparison is sufficient but some mimetypes trivial changes need to be discarded.

Parameters:
existingContent -
newFile -
Returns:
true content is equal, false content is different.


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.