public interface Range
An interface for ranged file transfers, which covers both XEP-0096 and XEP-0234.
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.
|
long getOffset()
Gets the position, in bytes, to start transferring the file data from. This defaults to zero (0) if not specified.
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.
Copyright © 2014–2019 XMPP.rocks. All rights reserved.