diff --git a/Aria/src/main/java/com/arialyy/aria/core/common/ftp/FtpInterceptHandler.java b/Aria/src/main/java/com/arialyy/aria/core/common/ftp/FtpInterceptHandler.java index 5eab6b47..28646c7e 100644 --- a/Aria/src/main/java/com/arialyy/aria/core/common/ftp/FtpInterceptHandler.java +++ b/Aria/src/main/java/com/arialyy/aria/core/common/ftp/FtpInterceptHandler.java @@ -97,4 +97,4 @@ public class FtpInterceptHandler { return handler; } } -} +} \ No newline at end of file diff --git a/Aria/src/main/java/com/arialyy/aria/core/common/ftp/IFtpUploadInterceptor.java b/Aria/src/main/java/com/arialyy/aria/core/common/ftp/IFtpUploadInterceptor.java index eea449d5..0248f22b 100644 --- a/Aria/src/main/java/com/arialyy/aria/core/common/ftp/IFtpUploadInterceptor.java +++ b/Aria/src/main/java/com/arialyy/aria/core/common/ftp/IFtpUploadInterceptor.java @@ -20,7 +20,6 @@ import java.util.List; /** * FTP文件上传拦截器,如果远端已有同名文件,可使用该拦截器控制覆盖文件或修改该文件上传到服务器端端文件名 - * simple *
*
* Aria.upload(this)
diff --git a/Aria/src/main/java/com/arialyy/aria/exception/FileNotFoundException.java b/Aria/src/main/java/com/arialyy/aria/exception/FileNotFoundException.java
index 4d69707f..12378266 100644
--- a/Aria/src/main/java/com/arialyy/aria/exception/FileNotFoundException.java
+++ b/Aria/src/main/java/com/arialyy/aria/exception/FileNotFoundException.java
@@ -26,7 +26,7 @@ public class FileNotFoundException extends BaseException {
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);
}
}
diff --git a/aria/src/main/java/com/arialyy/aria/core/upload/UploadTask.java b/aria/src/main/java/com/arialyy/aria/core/upload/UploadTask.java
index b37bf5c5..7f2bdf33 100644
--- a/aria/src/main/java/com/arialyy/aria/core/upload/UploadTask.java
+++ b/aria/src/main/java/com/arialyy/aria/core/upload/UploadTask.java
@@ -17,6 +17,7 @@ package com.arialyy.aria.core.upload;
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 @@ public class UploadTask extends AbsNormalTask {
mTaskWrapper = taskWrapper;
mOutHandler = outHandler;
mListener = new BaseUListener(this, mOutHandler);
- mUtil = new SimpleUploadUtil(taskWrapper, (IUploadListener) mListener);
}
@Override public int getTaskType() {
@@ -50,6 +50,10 @@ public class UploadTask extends AbsNormalTask {
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;