net.sf.jfilesync.sync2.syncer
Class HashSyncAttributeComparator

java.lang.Object
  extended by net.sf.jfilesync.sync2.syncer.HashSyncAttributeComparator
All Implemented Interfaces:
SyncAttributeComparator
Direct Known Subclasses:
Md5SyncAttributeComparator, Sha1SyncAttributeComparator

public abstract class HashSyncAttributeComparator
extends java.lang.Object
implements SyncAttributeComparator


Field Summary
(package private) static java.util.logging.Logger log
           
 
Constructor Summary
HashSyncAttributeComparator()
           
 
Method Summary
 SyncDiff[] compare(AbstractConnectionProxy con1, SyncFile file1, AbstractConnectionProxy con2, SyncFile file2)
           
protected abstract  SyncDiff createSyncDiff(SyncFile f)
           
protected abstract  HashSyncAttributor getHashSyncAttributor()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

static java.util.logging.Logger log
Constructor Detail

HashSyncAttributeComparator

public HashSyncAttributeComparator()
Method Detail

compare

public SyncDiff[] compare(AbstractConnectionProxy con1,
                          SyncFile file1,
                          AbstractConnectionProxy con2,
                          SyncFile file2)
                   throws java.io.IOException
Specified by:
compare in interface SyncAttributeComparator
Throws:
java.io.IOException

createSyncDiff

protected abstract SyncDiff createSyncDiff(SyncFile f)

getHashSyncAttributor

protected abstract HashSyncAttributor getHashSyncAttributor()