public class FileTransferImpl extends AbstractFileTransfer
Modifier and Type | Class and Description |
---|---|
(package private) class |
FileTransferImpl.IcqFileTransferEventListener
Provides support for files sent and received.
|
IN, OUT
Constructor and Description |
---|
FileTransferImpl(net.kano.joustsim.oscar.oscar.service.icbm.ft.FileTransfer fileTransfer,
java.lang.String id,
Contact contact,
java.io.File file,
int direction) |
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Cancels this file transfer.
|
Contact |
getContact()
Returns the contact that we are transferring files with.
|
int |
getDirection()
The file transfer direction.
|
java.lang.String |
getID()
Uniquie ID that is identifying the FileTransfer
if the request has been accepted.
|
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 transfered through this file transfer.
|
void |
setTransferedBytes(long transferedBytes) |
addProgressListener, addStatusListener, fireProgressChangeEvent, fireStatusChangeEvent, fireStatusChangeEvent, getStatus, removeProgressListener, removeStatusListener
public FileTransferImpl(net.kano.joustsim.oscar.oscar.service.icbm.ft.FileTransfer fileTransfer, java.lang.String id, Contact contact, java.io.File file, int direction)
public void cancel()
cancel
in interface FileTransfer
cancel
in class AbstractFileTransfer
public long getTransferedBytes()
getTransferedBytes
in interface FileTransfer
getTransferedBytes
in class AbstractFileTransfer
public java.lang.String getID()
public int getDirection()
public Contact getContact()
public java.io.File getLocalFile()
public void setTransferedBytes(long transferedBytes)
transferedBytes
- the transferedBytes to set
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.