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 TypeMethodDescriptionint
Returns the approximate size of the Object in bytes.long
void
setFileName
(String fileName) void
setFileSize
(long fileSize) void
setInitiator
(String initiator) void
setMimeType
(String mimeType) void
setProgress
(FileTransferProgress progress) void
setSessionID
(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:Cacheable
Returns 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:
getCachedSize
in interfaceCacheable
- Returns:
- the size of the Object in bytes.
-