Interface ContentComparator

All Known Implementing Classes:
CIFSContentComparator

public interface ContentComparator
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    isContentEqual(ContentReader existingContent, File file)
    Are the two content items equal?
  • Method Details

    • isContentEqual

      boolean isContentEqual(ContentReader existingContent, 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 -
      file - file
      Returns:
      true content is equal, false content is different.