Package org.syncany.chunk
Provides classes perform data deduplication on files.
The central classes of this package are Chunker
to
break files into individual chunks, MultiChunker
to combine chunks
into larger multichunks (containers), and Transformer
transform the multichunk data stream. For variable-size chunkers, the
Fingerprinter
class is also important.
The Deduper
combines the above classes and eases
their usage.
-
Interface Summary Interface Description Chunker.ChunkEnumeration The chunk enumeration is implemented by the actual chunkers and emits a new chunk whennextElement()
is called.DeduperListener Listener interface used by theDeduper
to notify the caller of file events, and to retrieve information about chunks and output files. -
Class Summary Class Description Adler32Fingerprinter A simple 32-bit "rolling" checksum.Chunk A chunk represents a certain part of a file.Chunker The chunker implements a core part of the deduplication process by breaking files into individualChunk
s.CipherTransformer The CipherTransformer can be used to encrypt/decrypt files (typicallyMultiChunk
s) using theMultiCipherOutputStream
andMultiCipherInputStream
.Deduper The Deduper implements the core deduplication algorithm used by Syncany.Fingerprinter FixedChunker The fixed chunker is an implementation of theChunker
.GzipTransformer Implements aTransformer
that transforms the input/output stream using the Gzip compression algorithm.GzipTransformer.GZIPOutputStreamEx MultiChunk A multichunk represents the container format that stores one to manyChunk
s.MultiChunker A multichunker combines a set ofChunk
s into a single file.NoTransformer Implements an emptyTransformer
.Transformer A transformer combines one or many stream-transformingOutputStream
s andInputStream
s.TttdChunker The TTTD chunker is an implementation of the Two Threshold Two Divisor (TTTD) chunking method based on the paper of Kave Eshghi and Hsiu Khuern Tang, 2005.ZipMultiChunk ZipMultiChunker