|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jivesoftware.spark.filetransfer.SparkTransferManager
public class SparkTransferManager
Responsible for the handling of File Transfer within Spark. You would use the SparkManager for sending of images, files, multiple files and adding your own transfer listeners for plugin work.
Method Summary | |
---|---|
void |
addTransferListener(FileTransferListener listener)
Adds a new TransferListener to the SparkManager. |
static java.awt.Image |
getClipboard()
Returns an image if one is found in the clipboard, otherwise null is returned. |
static SparkTransferManager |
getInstance()
Returns the singleton instance of SparkTransferManager ,
creating it if necessary. |
void |
removeTransferListener(FileTransferListener listener)
Removes the FileTransferListener. |
ChatRoom |
sendFile(java.io.File file,
java.lang.String bJID)
Send a file to a user. |
void |
sendFileTo(ContactItem item)
|
void |
sendImage(java.awt.Image image,
ChatRoom room)
Send an image to a user. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static SparkTransferManager getInstance()
SparkTransferManager
,
creating it if necessary.
SparkTransferManager
public void sendFileTo(ContactItem item)
public ChatRoom sendFile(java.io.File file, java.lang.String bJID)
file
- the file to send.bJID
- the bare jid of the user to send the file to.
public void sendImage(java.awt.Image image, ChatRoom room)
image
- the image to send.room
- the ChatRoom of the user you wish to send the image to.public static java.awt.Image getClipboard()
public void addTransferListener(FileTransferListener listener)
listener
- the listenerpublic void removeTransferListener(FileTransferListener listener)
listener
- the listener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |