org.xnap.transfer
Interface Segment

All Known Implementing Classes:
AzureusDownloadSegment, AzureusSegment, DefaultSegment, OpenNapSegment, OvernetSegment

public interface Segment


Method Summary
 int getAvailability()
           
 long getEnd()
           
 long getStart()
           
 long getTotal()
           
 long getTransferred()
           
 

Method Detail

getAvailability

int getAvailability()
Returns:
a number between 0 (= not available) and 255 (= high availability)

getEnd

long getEnd()
Returns:
the end offset

getStart

long getStart()
Returns:
the start offset

getTotal

long getTotal()
Returns:
the total size

getTransferred

long getTransferred()
Returns:
the number of bytes transferred


Copyright © 2001-2005 XNap Team. All Rights Reserved.