Package org.eclipse.ecf.filetransfer
Class FileTransferInfo
- java.lang.Object
- 
- org.eclipse.ecf.filetransfer.FileTransferInfo
 
- 
- All Implemented Interfaces:
- Serializable,- org.eclipse.core.runtime.IAdaptable,- IFileTransferInfo
 
 public class FileTransferInfo extends Object implements IFileTransferInfo, Serializable File transfer information delivered toIIncomingFileTransferRequestListenervia an event implementingIFileTransferRequestEvent.getFileTransferInfo()- See Also:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected Stringdescriptionprotected Filefileprotected StringmimeTypeprotected Mapproperties
 - 
Constructor SummaryConstructors Constructor Description FileTransferInfo(File file)FileTransferInfo(File file, Map properties)FileTransferInfo(File file, Map properties, String description)FileTransferInfo(File file, Map properties, String description, String mimeType)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> TgetAdapter(Class<T> adapter)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.
 
- 
- 
- 
Constructor Detail- 
FileTransferInfopublic FileTransferInfo(File file) 
 
- 
 - 
Method Detail- 
getFilepublic File getFile() Description copied from interface:IFileTransferInfoGet the file for the proposed file transfer- Specified by:
- getFilein interface- IFileTransferInfo
- Returns:
- the proposed file. Will not return null.
 
 - 
getPropertiespublic Map getProperties() Description copied from interface:IFileTransferInfoGet any properties associated with this file transfer. The map keys and values are assumed to be Strings.- Specified by:
- getPropertiesin interface- IFileTransferInfo
- Returns:
- Map of properties associated with this file transfer info. Will
         not return null.
 
 - 
getDescriptionpublic String getDescription() Description copied from interface:IFileTransferInfoGet any description associated with this file transfer info.- Specified by:
- getDescriptionin interface- IFileTransferInfo
- Returns:
- String description. May be nullif no description provided.
 
 - 
getAdapterpublic <T> T getAdapter(Class<T> adapter) - Specified by:
- getAdapterin interface- org.eclipse.core.runtime.IAdaptable
 
 - 
getFileSizepublic long getFileSize() Description copied from interface:IFileTransferInfoGet the file size (in bytes).- Specified by:
- getFileSizein interface- IFileTransferInfo
- Returns:
- long file size (in bytes). If file size is unknown, will return -1.
 
 - 
getMimeTypepublic String getMimeType() Description copied from interface:IFileTransferInfoGet the mime type string for this file transfer info.- Specified by:
- getMimeTypein interface- IFileTransferInfo
- Returns:
- String mime type.  May return nullif mime type is not known.
 
 
- 
 
-