Interface FileTransferOffer
-
- All Known Implementing Classes:
FileTransferOfferEvent,JingleFileTransfer.File,SIFileTransferOffer
public interface FileTransferOfferAn interface for file transfer requests, which covers XEP-0066, XEP-0096 and XEP-0234.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InstantgetDate()Gets the last modification time of the file.StringgetDescription()Gets a sender-generated description of the file.List<Hash>getHashes()Gets the hashes of the file contents.StringgetName()Gets the name of the file that the Sender wishes to send.RangegetRange()Gets the range.longgetSize()Gets the size, in bytes, of the data to be sent.
-
-
-
Method Detail
-
getSize
long getSize()
Gets the size, in bytes, of the data to be sent.- Returns:
- The size.
-
getName
String getName()
Gets the name of the file that the Sender wishes to send.- Returns:
- The file name.
-
getDate
Instant getDate()
Gets the last modification time of the file.- Returns:
- The date.
-
getDescription
String getDescription()
Gets a sender-generated description of the file.- Returns:
- The description.
-
getRange
Range getRange()
Gets the range.- Returns:
- The range.
-
-