public class CIFSContentComparator extends java.lang.Object implements ContentComparator
Most mimetypes can simply be binary compared but for some mimetypes there may be trivial differences so a binary compare is not sufficient.
In particular MS Project and MS Excel write to header fields without changing content.
| Constructor and Description |
|---|
CIFSContentComparator() |
| Modifier and Type | Method and Description |
|---|---|
void |
init() |
boolean |
isContentEqual(org.alfresco.service.cmr.repository.ContentReader existingContent,
java.io.File newFile)
Are the two content items equal?
|
public void init()
public boolean isContentEqual(org.alfresco.service.cmr.repository.ContentReader existingContent,
java.io.File newFile)
ContentComparatorFor most cases a simple binary comparison is sufficient but some mimetypes trivial changes need to be discarded.
isContentEqual in interface ContentComparatorCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.