com.aelitis.azureus.plugins.extseed.impl
Class ExternalSeedReaderRequest

java.lang.Object
  extended by com.aelitis.azureus.plugins.extseed.impl.ExternalSeedReaderRequest
All Implemented Interfaces:
ExternalSeedHTTPDownloaderListener

public class ExternalSeedReaderRequest
extends Object
implements ExternalSeedHTTPDownloaderListener


Constructor Summary
protected ExternalSeedReaderRequest(ExternalSeedReaderImpl _reader, List<PeerReadRequest> _requests)
           
 
Method Summary
protected  void cancel()
           
 void done()
           
 void failed()
           
 byte[] getBuffer()
           
 int getBufferLength()
           
 int getBufferPosition()
           
 int getLength()
           
 int getPercentDoneOfCurrentIncomingRequest()
           
 int getPermittedBytes()
           
 int getPermittedTime()
           
 int getStartPieceNumber()
           
 int getStartPieceOffset()
           
 boolean isCancelled()
           
 void reportBytesRead(int num)
           
 void setBufferPosition(int pos)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExternalSeedReaderRequest

protected ExternalSeedReaderRequest(ExternalSeedReaderImpl _reader,
                                    List<PeerReadRequest> _requests)
Method Detail

getStartPieceNumber

public int getStartPieceNumber()

getStartPieceOffset

public int getStartPieceOffset()

getLength

public int getLength()

getBuffer

public byte[] getBuffer()
                 throws ExternalSeedException
Specified by:
getBuffer in interface ExternalSeedHTTPDownloaderListener
Throws:
ExternalSeedException

isCancelled

public boolean isCancelled()
Specified by:
isCancelled in interface ExternalSeedHTTPDownloaderListener

done

public void done()
Specified by:
done in interface ExternalSeedHTTPDownloaderListener

cancel

protected void cancel()

failed

public void failed()

setBufferPosition

public void setBufferPosition(int pos)
Specified by:
setBufferPosition in interface ExternalSeedHTTPDownloaderListener

getBufferPosition

public int getBufferPosition()
Specified by:
getBufferPosition in interface ExternalSeedHTTPDownloaderListener

getBufferLength

public int getBufferLength()
Specified by:
getBufferLength in interface ExternalSeedHTTPDownloaderListener

getPercentDoneOfCurrentIncomingRequest

public int getPercentDoneOfCurrentIncomingRequest()

getPermittedBytes

public int getPermittedBytes()
                      throws ExternalSeedException
Specified by:
getPermittedBytes in interface ExternalSeedHTTPDownloaderListener
Throws:
ExternalSeedException

getPermittedTime

public int getPermittedTime()
Specified by:
getPermittedTime in interface ExternalSeedHTTPDownloaderListener

reportBytesRead

public void reportBytesRead(int num)
Specified by:
reportBytesRead in interface ExternalSeedHTTPDownloaderListener