|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.filesys.repo.CIFSContentComparator
public class CIFSContentComparator
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.
| Constructor Summary | |
|---|---|
CIFSContentComparator()
|
|
| Method Summary | |
|---|---|
void |
init()
|
boolean |
isContentEqual(org.alfresco.service.cmr.repository.ContentReader existingContent,
java.io.File newFile)
Are the two content items equal? |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CIFSContentComparator()
| Method Detail |
|---|
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 ContentComparator
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||