Class FileTransfer
java.lang.Object
org.jivesoftware.openfire.filetransfer.FileTransfer
- All Implemented Interfaces:
Serializable,Cacheable
Contains all of the meta information associated with a file transfer.
- Author:
- Alexander Wenckus
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the approximate size of the Object in bytes.longvoidsetFileName(String fileName) voidsetFileSize(long fileSize) voidsetInitiator(String initiator) voidsetMimeType(String mimeType) voidsetProgress(FileTransferProgress progress) voidsetSessionID(String sessionID) void
-
Constructor Details
-
FileTransfer
-
-
Method Details
-
getSessionID
-
setSessionID
-
getInitiator
-
setInitiator
-
getTarget
-
setTarget
-
getFileName
-
setFileName
-
getFileSize
public long getFileSize() -
setFileSize
public void setFileSize(long fileSize) -
getMimeType
-
setMimeType
-
getProgress
-
setProgress
-
getCachedSize
public int getCachedSize()Description copied from interface:CacheableReturns the approximate size of the Object in bytes. The size should be considered to be a best estimate of how much memory the Object occupies and may be based on empirical trials or dynamic calculations.- Specified by:
getCachedSizein interfaceCacheable- Returns:
- the size of the Object in bytes.
-