|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface OperationSetFileTransfer
The File Transfer Operation Set provides an interface towards those functions of a given protocol, that allow transferring files among users.
| Method Summary | |
|---|---|
void |
addFileTransferListener(FileTransferListener listener)
Adds the given FileTransferListener that would listen for file transfer requests and created file transfers. |
long |
getMaximumFileLength()
Returns the maximum file length supported by the protocol in bytes. |
void |
removeFileTransferListener(FileTransferListener listener)
Removes the given FileTransferListener that listens for file transfer requests and created file transfers. |
FileTransfer |
sendFile(Contact toContact,
Contact fromContact,
String remotePath,
String localPath)
Sends a file transfer request to the given toContact by specifying the local and remote file path and the fromContact, sending the file. |
FileTransfer |
sendFile(Contact toContact,
File file)
Sends a file transfer request to the given toContact by specifying the local and remote file path and the fromContact, sending the file. |
| Method Detail |
|---|
FileTransfer sendFile(Contact toContact,
File file)
throws IllegalStateException,
IllegalArgumentException,
OperationNotSupportedException
toContact - the contact that should receive the filefile - the file to send
IllegalStateException - if the protocol provider is not registered
or connected
IllegalArgumentException - if some of the arguments doesn't fit the
protocol requirements
OperationNotSupportedException - if the given contact client or
server does not support file transfers
FileTransfer sendFile(Contact toContact,
Contact fromContact,
String remotePath,
String localPath)
throws IllegalStateException,
IllegalArgumentException,
OperationNotSupportedException
toContact - the contact that should receive the filefromContact - the contact sending the fileremotePath - the remote file pathlocalPath - the local file path
IllegalStateException - if the protocol provider is not registered
or connected
IllegalArgumentException - if some of the arguments doesn't fit the
protocol requirements
OperationNotSupportedException - if the given contact client or
server does not support file transfers.void addFileTransferListener(FileTransferListener listener)
listener - the FileTransferListener to addvoid removeFileTransferListener(FileTransferListener listener)
listener - the FileTransferListener to removelong getMaximumFileLength()
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||