All Downloads are FREE. Search and download functionalities are using the official Maven repository.

bt.data.DataDescriptorFactory Maven / Gradle / Ivy

There is a newer version: 1.10
Show newest version
package bt.data;

import bt.metainfo.Torrent;

/**
 *

Note that this class implements a service. * Hence, is not a part of the public API and is a subject to change.

*/ public class DataDescriptorFactory implements IDataDescriptorFactory { private ChunkVerifier verifier; private int transferBlockSize; public DataDescriptorFactory(ChunkVerifier verifier, int transferBlockSize) { this.verifier = verifier; this.transferBlockSize = transferBlockSize; } @Override public DataDescriptor createDescriptor(Torrent torrent, Storage storage) { return new DefaultDataDescriptor(storage, torrent, verifier, transferBlockSize); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy