Class Deduper

    • Constructor Summary

      Constructors 
      Constructor Description
      Deduper​(Chunker chunker, MultiChunker multiChunker, Transformer transformer, long maxTotalSize, long maxNumberOfFiles)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void deduplicate​(java.util.List<java.io.File> files, DeduperListener listener)
      Deduplicates the given list of files according to the Syncany chunk algorithm.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • deduplicate

        public void deduplicate​(java.util.List<java.io.File> files,
                                DeduperListener listener)
                         throws java.io.IOException
        Deduplicates the given list of files according to the Syncany chunk algorithm.

        A brief description of the algorithm (and further links to a detailed description) are given in the Deduper.

        Parameters:
        files - List of files to be deduplicated (will be modified!)
        listener - Listener to react of file/chunk/multichunk events, and to implement the chunk index
        Throws:
        java.io.IOException - If a file cannot be read or an unexpected exception occurs