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()
IFileTransferInfo
getFile
in interface IFileTransferInfo
null
.public Map getProperties()
IFileTransferInfo
getProperties
in interface IFileTransferInfo
null
.public String getDescription()
IFileTransferInfo
getDescription
in interface IFileTransferInfo
null
if no description
provided.public Object getAdapter(Class adapter)
getAdapter
in interface org.eclipse.core.runtime.IAdaptable
public long getFileSize()
IFileTransferInfo
getFileSize
in interface IFileTransferInfo
public String getMimeType()
IFileTransferInfo
getMimeType
in interface IFileTransferInfo
null
if mime type is not known.Copyright © 2017. All rights reserved.