Class SIFileTransferOffer.SIRange
- java.lang.Object
-
- rocks.xmpp.extensions.si.profile.filetransfer.model.SIFileTransferOffer.SIRange
-
- All Implemented Interfaces:
Range
- Enclosing class:
- SIFileTransferOffer
public static final class SIFileTransferOffer.SIRange extends Object implements Range
Allows to do ranged transfers.
-
-
Constructor Summary
Constructors Constructor Description SIRange(long offset, long length)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getLength()
Gets the number of bytes to retrieve starting at offset.long
getOffset()
Gets the position, in bytes, to start transferring the file data from.
-
-
-
Constructor Detail
-
SIRange
public SIRange(long offset, long length)
- Parameters:
offset
- Specifies the position, in bytes, to start transferring the file data from. This defaults to zero (0) if not specified.length
- Specifies the number of bytes to retrieve starting at offset. This defaults to the length of the file from offset to the end.
-
-