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 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 hashes of the file contents.String
getMediaType()
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.String
toString()
-
-
-
Method Detail
-
getSize
public final long getSize()
Description copied from interface:FileTransferOffer
Gets the size, in bytes, of the data to be sent.- Specified by:
getSize
in interfaceFileTransferOffer
- Returns:
- The size.
-
getName
public final String getName()
Description copied from interface:FileTransferOffer
Gets the name of the file that the Sender wishes to send.- Specified by:
getName
in interfaceFileTransferOffer
- Returns:
- The file name.
-
getDate
public final Instant getDate()
Description copied from interface:FileTransferOffer
Gets the last modification time of the file.- Specified by:
getDate
in interfaceFileTransferOffer
- Returns:
- The date.
-
getHashes
public final List<Hash> getHashes()
Description copied from interface:FileTransferOffer
Gets the hashes of the file contents.- Specified by:
getHashes
in interfaceFileTransferOffer
- Returns:
- The hashes.
-
getDescription
public final String getDescription()
Description copied from interface:FileTransferOffer
Gets a sender-generated description of the file.- Specified by:
getDescription
in interfaceFileTransferOffer
- Returns:
- The description.
-
getRange
public final Range getRange()
Description copied from interface:FileTransferOffer
Gets the range.- Specified by:
getRange
in 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
-
-