public class CIFSContentComparator extends 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,
File newFile)
Are the two content items equal?
|
public void init()
public boolean isContentEqual(org.alfresco.service.cmr.repository.ContentReader existingContent,
File newFile)
ContentComparatorFor most cases a simple binary comparison is sufficient but some mimetypes trivial changes need to be discarded.
isContentEqual in interface ContentComparatornewFile - fileCopyright © 2005–2018 Alfresco Software. All rights reserved.