this.torrent = torrent;
total = torrent.getTorrentFile().getTotalLength();
pieceListener = new IPieceProgressListener() {
public void blockDownloaded(int piece, int index, int blockLength) {
TorrentFileTransfer.this.listener.handleTransferEvent(new IIncomingFileTransferReceiveDataEvent() {
public IIncomingFileTransfer getSource() {
return TorrentFileTransfer.this;
}