Interface Range
-
- All Known Implementing Classes:
SIFileTransferOffer.SIRange
public interface RangeAn interface for ranged file transfers, which covers both XEP-0096 and XEP-0234.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetLength()Gets the number of bytes to retrieve starting at offset.longgetOffset()Gets the position, in bytes, to start transferring the file data from.
-
-
-
Method Detail
-
getOffset
long getOffset()
Gets the position, in bytes, to start transferring the file data from. This defaults to zero (0) if not specified.- Returns:
- The offset.
-
getLength
long getLength()
Gets the number of bytes to retrieve starting at offset. This defaults to the length of the file from offset to the end.- Returns:
- The length.
-
-