public final class PiecesTracker
extends java.lang.Object
| Constructor and Description |
|---|
PiecesTracker(TorrentInfo ti) |
| Modifier and Type | Method and Description |
|---|---|
long |
getSequentialDownloadedBytes(int fileIndex) |
int |
getSequentialDownloadedPieces(int fileIndex) |
boolean |
isComplete(int pieceIndex) |
int |
numFiles() |
int |
numPieces() |
void |
setComplete(int pieceIndex,
boolean complete) |
public PiecesTracker(TorrentInfo ti)
public int numFiles()
public int numPieces()
public boolean isComplete(int pieceIndex)
public void setComplete(int pieceIndex,
boolean complete)
public long getSequentialDownloadedBytes(int fileIndex)
public int getSequentialDownloadedPieces(int fileIndex)