public class FileTransferInfo extends java.lang.Object implements IFileTransferInfo, java.io.Serializable
IIncomingFileTransferRequestListener
via an event implementing
IFileTransferRequestEvent.getFileTransferInfo()
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
description |
protected java.io.File |
file |
protected java.lang.String |
mimeType |
protected java.util.Map |
properties |
Constructor and Description |
---|
FileTransferInfo(java.io.File file) |
FileTransferInfo(java.io.File file,
java.util.Map properties) |
FileTransferInfo(java.io.File file,
java.util.Map properties,
java.lang.String description) |
FileTransferInfo(java.io.File file,
java.util.Map properties,
java.lang.String description,
java.lang.String mimeType) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getAdapter(java.lang.Class adapter) |
java.lang.String |
getDescription()
Get any description associated with this file transfer info.
|
java.io.File |
getFile()
Get the file for the proposed file transfer
|
long |
getFileSize()
Get the file size (in bytes).
|
java.lang.String |
getMimeType()
Get the mime type string for this file transfer info.
|
java.util.Map |
getProperties()
Get any properties associated with this file transfer.
|
protected java.io.File file
protected java.util.Map properties
protected java.lang.String description
protected java.lang.String mimeType
public FileTransferInfo(java.io.File file)
public FileTransferInfo(java.io.File file, java.util.Map properties)
public FileTransferInfo(java.io.File file, java.util.Map properties, java.lang.String description)
public FileTransferInfo(java.io.File file, java.util.Map properties, java.lang.String description, java.lang.String mimeType)
public java.io.File getFile()
IFileTransferInfo
getFile
in interface IFileTransferInfo
null
.public java.util.Map getProperties()
IFileTransferInfo
getProperties
in interface IFileTransferInfo
null
.public java.lang.String getDescription()
IFileTransferInfo
getDescription
in interface IFileTransferInfo
null
if no description
provided.public java.lang.Object getAdapter(java.lang.Class adapter)
getAdapter
in interface org.eclipse.core.runtime.IAdaptable
public long getFileSize()
IFileTransferInfo
getFileSize
in interface IFileTransferInfo
public java.lang.String getMimeType()
IFileTransferInfo
getMimeType
in interface IFileTransferInfo
null
if mime type is not known.