public class IncomingFileTransferJabberImpl extends AbstractFileTransfer
IN, OUT
Constructor and Description |
---|
IncomingFileTransferJabberImpl(java.lang.String id,
Contact sender,
java.io.File file,
org.jivesoftware.smackx.filetransfer.IncomingFileTransfer jabberTransfer)
Creates an IncomingFileTransferJabberImpl.
|
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Cancels the file transfer.
|
Contact |
getContact()
Returns the sender of the file.
|
int |
getDirection()
The direction is incoming.
|
java.lang.String |
getID()
Returns the identifier of this file transfer.
|
java.io.File |
getLocalFile()
Returns the local file that is being transferred or to which we transfer.
|
long |
getTransferedBytes()
Returns the number of bytes already received from the recipient.
|
addProgressListener, addStatusListener, fireProgressChangeEvent, fireStatusChangeEvent, fireStatusChangeEvent, getStatus, removeProgressListener, removeStatusListener
public IncomingFileTransferJabberImpl(java.lang.String id, Contact sender, java.io.File file, org.jivesoftware.smackx.filetransfer.IncomingFileTransfer jabberTransfer)
id
- the identifier of this transfersender
- the sender of the filefile
- the filejabberTransfer
- the Jabber file transfer objectpublic void cancel()
cancel
in interface FileTransfer
cancel
in class AbstractFileTransfer
public long getTransferedBytes()
getTransferedBytes
in interface FileTransfer
getTransferedBytes
in class AbstractFileTransfer
public int getDirection()
public Contact getContact()
public java.lang.String getID()
public java.io.File getLocalFile()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.