public static final class SIFileTransferOffer.SIRange extends java.lang.Object implements Range
Allows to do ranged transfers.
Constructor and Description |
---|
SIRange(long offset,
long length) |
Modifier and Type | Method and 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.
|
public SIRange(long offset, long length)
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.Copyright © 2014–2019 XMPP.rocks. All rights reserved.