to.etc.util
Interface IDirectoryDelta


public interface IDirectoryDelta


Method Summary
 void compareFiles(java.io.File b, java.io.File a, java.lang.String relpath)
          Called when a and b both contain the same-named file.
 boolean directoryAdded(java.io.File b, java.io.File a, java.lang.String relpath)
          The directory "b" was added, and did not exist in "a".
 boolean directoryDeleted(java.io.File b, java.io.File a, java.lang.String relpath)
          Mark directory "b" as deleted (it exists as "a").
 void fileAdded(java.io.File b, java.io.File a, java.lang.String relpath)
           
 void fileDeleted(java.io.File b, java.io.File a, java.lang.String relpath)
           
 

Method Detail

fileAdded

void fileAdded(java.io.File b,
               java.io.File a,
               java.lang.String relpath)
               throws java.lang.Exception
Throws:
java.lang.Exception

directoryAdded

boolean directoryAdded(java.io.File b,
                       java.io.File a,
                       java.lang.String relpath)
                       throws java.lang.Exception
The directory "b" was added, and did not exist in "a". Return true if you want all files in "b" and below to be reported as delta too.

Parameters:
b -
a -
relpath -
Returns:
Throws:
java.lang.Exception

fileDeleted

void fileDeleted(java.io.File b,
                 java.io.File a,
                 java.lang.String relpath)
                 throws java.lang.Exception
Throws:
java.lang.Exception

directoryDeleted

boolean directoryDeleted(java.io.File b,
                         java.io.File a,
                         java.lang.String relpath)
                         throws java.lang.Exception
Mark directory "b" as deleted (it exists as "a"). Return true if the underlying files in "a" need to be deltad as "deleted" too.

Parameters:
b -
a -
relpath -
Returns:
Throws:
java.lang.Exception

compareFiles

void compareFiles(java.io.File b,
                  java.io.File a,
                  java.lang.String relpath)
                  throws java.lang.Exception
Called when a and b both contain the same-named file. You can add content or size comparisons here.

Parameters:
b -
a -
relpath -
Throws:
java.lang.Exception