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