Package org.alfresco.filesys.repo
Class CIFSContentComparator
java.lang.Object
org.alfresco.filesys.repo.CIFSContentComparator
- All Implemented Interfaces:
ContentComparator
Compares content for to see if content is equal.
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.
- Author:
- mrogers
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinit()booleanisContentEqual(ContentReader existingContent, File newFile) Are the two content items equal?
-
Constructor Details
-
CIFSContentComparator
public CIFSContentComparator()
-
-
Method Details
-
init
public void init() -
isContentEqual
Description copied from interface:ContentComparatorAre the two content items equal?For most cases a simple binary comparison is sufficient but some mimetypes trivial changes need to be discarded.
- Specified by:
isContentEqualin interfaceContentComparatornewFile- file- Returns:
- true content is equal, false content is different.
-