public final class SIFileTransferOffer extends Object implements FileTransferOffer
<file/> element.
This class is immutable.
| Modifier and Type | Class and Description |
|---|---|
static class |
SIFileTransferOffer.SIRange
Allows to do ranged transfers.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
NAMESPACE
http://jabber.org/protocol/si/profile/file-transfer
|
| Constructor and Description |
|---|
SIFileTransferOffer(String name,
long size) |
SIFileTransferOffer(String name,
long size,
Instant lastModified,
String hash,
String description,
SIFileTransferOffer.SIRange range) |
| Modifier and Type | Method and Description |
|---|---|
Instant |
getDate()
Gets the last modification time of the file.
|
String |
getDescription()
Gets a sender-generated description of the file.
|
List<Hash> |
getHashes()
Gets the MD5 sum of the file contents.
|
String |
getName()
Gets the name of the file that the Sender wishes to send.
|
Range |
getRange()
Gets the range.
|
long |
getSize()
Gets the size, in bytes, of the data to be sent.
|
public static final String NAMESPACE
public SIFileTransferOffer(String name, long size)
public SIFileTransferOffer(String name, long size, Instant lastModified, String hash, String description, SIFileTransferOffer.SIRange range)
public final long getSize()
getSize in interface FileTransferOfferpublic final String getName()
getName in interface FileTransferOfferpublic final Instant getDate()
getDate in interface FileTransferOfferpublic final List<Hash> getHashes()
getHashes in interface FileTransferOfferpublic final String getDescription()
getDescription in interface FileTransferOfferpublic final Range getRange()
getRange in interface FileTransferOfferCopyright © 2014–2018 XMPP.rocks. All rights reserved.