Skip to content
Permalink
Browse files

merge

  • Loading branch information...
AriaLyy committed May 23, 2019
2 parents d40f8fa + a7d3f14 commit 6d06458df7f87422aa68c1ae4c57a0346346c660
@@ -97,4 +97,4 @@ public FtpInterceptHandler build() {
return handler;
}
}
}
}
@@ -20,7 +20,6 @@

/**
* FTP文件上传拦截器,如果远端已有同名文件,可使用该拦截器控制覆盖文件或修改该文件上传到服务器端端文件名
* simple
* <pre>
* <code>
* Aria.upload(this)
@@ -26,7 +26,7 @@ public FileNotFoundException(String tag, String detailMessage) {
super(tag, String.format("%s%s", ARIA_FILE_EXCEPTION, detailMessage));
}

public FileNotFoundException(String tag, String message, Exception e){
public FileNotFoundException(String tag, String message, Exception e) {
super(tag, message, e);
}
}
@@ -17,6 +17,7 @@

import android.os.Handler;
import android.os.Looper;
import com.arialyy.aria.core.common.IUtil;
import com.arialyy.aria.core.inf.AbsNormalTask;
import com.arialyy.aria.core.inf.IUploadListener;
import com.arialyy.aria.core.scheduler.ISchedulers;
@@ -31,7 +32,6 @@ private UploadTask(UTaskWrapper taskWrapper, Handler outHandler) {
mTaskWrapper = taskWrapper;
mOutHandler = outHandler;
mListener = new BaseUListener(this, mOutHandler);
mUtil = new SimpleUploadUtil(taskWrapper, (IUploadListener) mListener);
}

@Override public int getTaskType() {
@@ -50,6 +50,10 @@ public UploadEntity getEntity() {
return mTaskWrapper.getEntity().getFileName();
}

@Override protected synchronized IUtil createUtil() {
return new SimpleUploadUtil(mTaskWrapper, (IUploadListener) mListener);
}

public static class Builder {
private Handler mOutHandler;
private UTaskWrapper mTaskEntity;

0 comments on commit 6d06458

Please sign in to comment.
You can’t perform that action at this time.