|
Openfire 3.5.0 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FileTransferProgress
An interface to track the progress of a file transfer through the server. This interface is used
by FileTransfer
to make this information available if it is in the system.
Method Summary | |
---|---|
long |
getAmountTransfered()
|
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. |
Method Detail |
---|
long getAmountTransfered() 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()
|
Openfire 3.5.0 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |