com.aelitis.azureus.plugins.extseed.impl
Class ExternalSeedReaderRequest
java.lang.Object
com.aelitis.azureus.plugins.extseed.impl.ExternalSeedReaderRequest
- All Implemented Interfaces:
- ExternalSeedHTTPDownloaderListener
public class ExternalSeedReaderRequest
- extends java.lang.Object
- implements ExternalSeedHTTPDownloaderListener
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExternalSeedReaderRequest
protected ExternalSeedReaderRequest(ExternalSeedReaderImpl _reader,
java.util.List<PeerReadRequest> _requests)
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