public interface FileTransferProgress
FileTransfer
to make this information available if it is in the system.Modifier and Type | Method and Description |
---|---|
long |
getAmountTransferred()
Returns the number of bytes that has been transferred.
|
String |
getInitiator()
Returns the fully qualified JID of the initiator of the file transfer.
|
InputStream |
getInputStream() |
OutputStream |
getOutputStream() |
String |
getSessionID()
Returns the unique session id that correlates to the file transfer.
|
String |
getTarget()
Returns the full qualified JID of the target of the file transfer.
|
void |
setInitiator(String initiator) |
void |
setInputStream(InputStream initiatorInputStream) |
void |
setOutputStream(OutputStream targetOutputStream) |
void |
setSessionID(String streamID) |
void |
setTarget(String target) |
void |
setTransferFuture(Future<?> future)
When the file transfer is being caried out by another thread this will set the Future
relating to the thread that is carrying out the transfer.
|
long getAmountTransferred() throws UnsupportedOperationException
UnsupportedOperationException
String getInitiator()
void setInitiator(String initiator)
String getTarget()
void setTarget(String target)
String getSessionID()
void setSessionID(String streamID)
void setTransferFuture(Future<?> future)
future
- the furute that is carrying out the transfervoid setInputStream(InputStream initiatorInputStream)
InputStream getInputStream()
void setOutputStream(OutputStream targetOutputStream)
OutputStream getOutputStream()
Copyright © 2003-2008 Jive Software.