Package org.eclipse.ecf.filetransfer
Interface IFileTransferInfo
-
- All Superinterfaces:
org.eclipse.core.runtime.IAdaptable
- All Known Implementing Classes:
FileTransferInfo
public interface IFileTransferInfo extends org.eclipse.core.runtime.IAdaptableFile transfer information delivered toIIncomingFileTransferRequestListenervia an event implementingIFileTransferRequestEvent.getFileTransferInfo()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetDescription()Get any description associated with this file transfer info.FilegetFile()Get the file for the proposed file transferlonggetFileSize()Get the file size (in bytes).StringgetMimeType()Get the mime type string for this file transfer info.MapgetProperties()Get any properties associated with this file transfer.
-
-
-
Method Detail
-
getFile
File getFile()
Get the file for the proposed file transfer- Returns:
- the proposed file. Will not return
null.
-
getFileSize
long getFileSize()
Get the file size (in bytes).- Returns:
- long file size (in bytes). If file size is unknown, will return -1.
-
getProperties
Map getProperties()
Get any properties associated with this file transfer. The map keys and values are assumed to be Strings.- Returns:
- Map of properties associated with this file transfer info. Will
not return
null.
-
getDescription
String getDescription()
Get any description associated with this file transfer info.- Returns:
- String description. May be
nullif no description provided.
-
getMimeType
String getMimeType()
Get the mime type string for this file transfer info.- Returns:
- String mime type. May return
nullif mime type is not known.
-
-