public class DataDescriptorFactory extends Object implements IDataDescriptorFactory
Note that this class implements a service. Hence, is not a part of the public API and is a subject to change.
Constructor and Description |
---|
DataDescriptorFactory(DataReaderFactory dataReaderFactory,
ChunkVerifier verifier,
int transferBlockSize) |
Modifier and Type | Method and Description |
---|---|
DataDescriptor |
createDescriptor(Torrent torrent,
Storage storage,
FileDownloadCompleteCallback fileCompletionCallback)
Create a data descriptor for a given torrent
with the storage provided as the data back-end.
|
public DataDescriptorFactory(DataReaderFactory dataReaderFactory, ChunkVerifier verifier, int transferBlockSize)
public DataDescriptor createDescriptor(Torrent torrent, Storage storage, FileDownloadCompleteCallback fileCompletionCallback)
IDataDescriptorFactory
createDescriptor
in interface IDataDescriptorFactory
torrent
- the torrent to create the descriptor forstorage
- the storage for the descriptorfileCompletionCallback
- the callback to call when a file download completes. nullableCopyright © 2016–2021. All rights reserved.