/****************************************************************************** * Copyright (c) 2006 Remy Suen. All rights reserved. This program and the * accompanying materials are made available under the terms of the Eclipse * Public License v1.0, which accompanies this distribution and is available at * http://www.eclipse.org/legal/epl-v10.html, and also the MIT license, which * also accompanies this distribution. This dual licensing scheme allows a * developer to choose either license for use when developing applications with * this code. * * Contributors: * Remy Suen <remy.suen@gmail.com> - initial API and implementation ******************************************************************************/ package org.eclipse.bittorrent; /** * The <code>IPieceProgressListener</code> is used to indicate that one of the * pieces has just retrieved some amount of additional data from a peer. */ public interface IPieceProgressListener { /** * This method is called when additional bytes has been written for a piece. * * @param piece * the piece's number * @param index * the position in the piece where the bytes were written to * @param blockLength * the amount of bytes that has been written */ public void blockDownloaded(int piece, int index, int blockLength); }