org.xnap.plugin.azureus
Class AzureusDownloadSegment

java.lang.Object
  extended by org.xnap.plugin.azureus.AzureusDownloadSegment
All Implemented Interfaces:
Segment

public class AzureusDownloadSegment
extends java.lang.Object
implements Segment


Constructor Summary
AzureusDownloadSegment(long totalSize, long start, long end, Segment parentSegment)
           
 
Method Summary
 int getAvailability()
           
 long getEnd()
           
 long getStart()
           
 long getTotal()
           
 long getTransferred()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AzureusDownloadSegment

public AzureusDownloadSegment(long totalSize,
                              long start,
                              long end,
                              Segment parentSegment)
Method Detail

getAvailability

public int getAvailability()
Specified by:
getAvailability in interface Segment
Returns:
a number between 0 (= not available) and 255 (= high availability)

getEnd

public long getEnd()
Specified by:
getEnd in interface Segment
Returns:
the end offset
See Also:
Segment.getEnd()

getStart

public long getStart()
Specified by:
getStart in interface Segment
Returns:
the start offset
See Also:
Segment.getStart()

getTotal

public long getTotal()
Specified by:
getTotal in interface Segment
Returns:
the total size
See Also:
Segment.getTotal()

getTransferred

public long getTransferred()
Specified by:
getTransferred in interface Segment
Returns:
the number of bytes transferred
See Also:
Segment.getTransferred()


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