public static final class JingleFileTransfer.File extends java.lang.Object implements FileTransferOffer
| Constructor and Description |
|---|
File(java.lang.String name,
long size) |
File(java.lang.String name,
long size,
java.time.Instant lastModified,
Hash hash,
java.lang.String description) |
File(java.lang.String name,
long size,
java.time.Instant lastModified,
Hash hash,
java.lang.String description,
Thumbnail thumbnail) |
| Modifier and Type | Method and Description |
|---|---|
java.time.Instant |
getDate()
Gets the last modification time of the file.
|
java.lang.String |
getDescription()
Gets a sender-generated description of the file.
|
java.util.List<Hash> |
getHashes()
Gets the hashes of the file contents.
|
java.lang.String |
getMediaType() |
java.lang.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.
|
Thumbnail |
getThumbnail()
Gets the optional thumbnail.
|
java.lang.String |
toString() |
public File(java.lang.String name,
long size)
public File(java.lang.String name,
long size,
java.time.Instant lastModified,
Hash hash,
java.lang.String description)
public final long getSize()
FileTransferOfferGets the size, in bytes, of the data to be sent.
getSize in interface FileTransferOfferpublic final java.lang.String getName()
FileTransferOfferGets the name of the file that the Sender wishes to send.
getName in interface FileTransferOfferpublic final java.time.Instant getDate()
FileTransferOfferGets the last modification time of the file.
getDate in interface FileTransferOfferpublic final java.util.List<Hash> getHashes()
FileTransferOfferGets the hashes of the file contents.
getHashes in interface FileTransferOfferpublic final java.lang.String getDescription()
FileTransferOfferGets a sender-generated description of the file.
getDescription in interface FileTransferOfferpublic final Range getRange()
FileTransferOfferGets the range.
getRange in interface FileTransferOfferpublic final java.lang.String getMediaType()
public final Thumbnail getThumbnail()
Gets the optional thumbnail.
public final java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2014–2019 XMPP.rocks. All rights reserved.