/**
* A utility that contains all of the client functionality needed to perform the upload tasks.
* This class is observable on the upload progress.
*
* @author Brock Heinz
*/
class ClientUtility extends Observable {
/**
* Wrapper around observable
*
* @param totalBytesWritten - number of bytes written to a stream to the server
*/
void fireUploadProgress(int totalBytesWritten) {
setChanged()
notifyObservers(totalBytesWritten)
}
def doUpload(File f) {
...
}
}
用户登录
还没有账号?立即注册
用户注册
投稿取消
| 文章分类: |
|
还能输入300字
上传中....
迷茫居士71979789