be.re.repo
Interface TestDifference


public interface TestDifference

The interface for external modules that test if two version streams are different. Since the differences themselves don't have to be calculated an implementation can be quite fast. Such modules are declared in /configuration/maps.xml using the test-difference element as in the following example:

 <test-difference>
   <mime-type>* /*</mime-type>
   <class><name>be.re.repo.mod.BinaryTestDifference</name></class>
 </test-difference>
 
 

Author:
Werner Donné

Method Summary
 boolean test(InputStream v1, InputStream v2, String mimeType, Context context)
           
 

Method Detail

test

boolean test(InputStream v1,
             InputStream v2,
             String mimeType,
             Context context)
             throws IOException
Parameters:
v1 - the inputstream of the first version.
v2 - the inputstream of the second version.
mimeType - the MIME type of the document.
context - the repository context.
Returns:
true if the versions are different, false otherwise.
Throws:
IOException