public class FileTransferInfo extends Object implements IFileTransferInfo, Serializable
IIncomingFileTransferRequestListener via an event implementing
IFileTransferRequestEvent.getFileTransferInfo()| Modifier and Type | Field and Description |
|---|---|
protected String |
description |
protected File |
file |
protected String |
mimeType |
protected Map |
properties |
| Constructor and 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) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAdapter(Class adapter) |
String |
getDescription()
Get any description associated with this file transfer info.
|
File |
getFile()
Get the file for the proposed file transfer
|
long |
getFileSize()
Get the file size (in bytes).
|
String |
getMimeType()
Get the mime type string for this file transfer info.
|
Map |
getProperties()
Get any properties associated with this file transfer.
|
protected File file
protected Map properties
protected String description
protected String mimeType
public FileTransferInfo(File file)
public File getFile()
IFileTransferInfogetFile in interface IFileTransferInfonull.public Map getProperties()
IFileTransferInfogetProperties in interface IFileTransferInfonull.public String getDescription()
IFileTransferInfogetDescription in interface IFileTransferInfonull if no description
provided.public Object getAdapter(Class adapter)
getAdapter in interface org.eclipse.core.runtime.IAdaptablepublic long getFileSize()
IFileTransferInfogetFileSize in interface IFileTransferInfopublic String getMimeType()
IFileTransferInfogetMimeType in interface IFileTransferInfonull if mime type is not known.Copyright © 2004–2020 Eclipse Foundation. All rights reserved.