downloads display, starting and stopping

This commit is contained in:
Zlatin Balevsky
2019-11-30 23:34:59 +00:00
parent 0bff4b55a5
commit 95dd5c4a7c
7 changed files with 208 additions and 4 deletions

View File

@@ -92,6 +92,22 @@ public class Downloader {
public synchronized InfoHash getInfoHash() {
infoHash
}
public File getFile() {
file
}
public int getNPieces() {
nPieces
}
public int getPieceSize() {
pieceSize
}
public long getLength() {
length
}
private synchronized void setInfoHash(InfoHash infoHash) {
this.infoHash = infoHash