Class JingleFileTransfer.File
- java.lang.Object
-
- rocks.xmpp.extensions.jingle.apps.filetransfer.model.JingleFileTransfer.File
-
- All Implemented Interfaces:
FileTransferOffer
- Enclosing class:
- JingleFileTransfer
public static final class JingleFileTransfer.File extends Object implements FileTransferOffer
-
-
Method Summary
All Methods Instance Methods Concrete 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.StringgetMediaType()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.ThumbnailgetThumbnail()Gets the optional thumbnail.StringtoString()
-
-
-
Method Detail
-
getSize
public final long getSize()
Description copied from interface:FileTransferOfferGets the size, in bytes, of the data to be sent.- Specified by:
getSizein interfaceFileTransferOffer- Returns:
- The size.
-
getName
public final String getName()
Description copied from interface:FileTransferOfferGets the name of the file that the Sender wishes to send.- Specified by:
getNamein interfaceFileTransferOffer- Returns:
- The file name.
-
getDate
public final Instant getDate()
Description copied from interface:FileTransferOfferGets the last modification time of the file.- Specified by:
getDatein interfaceFileTransferOffer- Returns:
- The date.
-
getHashes
public final List<Hash> getHashes()
Description copied from interface:FileTransferOfferGets the hashes of the file contents.- Specified by:
getHashesin interfaceFileTransferOffer- Returns:
- The hashes.
-
getDescription
public final String getDescription()
Description copied from interface:FileTransferOfferGets a sender-generated description of the file.- Specified by:
getDescriptionin interfaceFileTransferOffer- Returns:
- The description.
-
getRange
public final Range getRange()
Description copied from interface:FileTransferOfferGets the range.- Specified by:
getRangein interfaceFileTransferOffer- Returns:
- The range.
-
getMediaType
public final String getMediaType()
-
getThumbnail
public final Thumbnail getThumbnail()
Gets the optional thumbnail.- Returns:
- The thumbnail or null.
- See Also:
- XEP-0264: Jingle Content Thumbnails
-
-