|
@@ -15,18 +15,18 @@ public interface FYunFileServiceInterface {
|
|
|
* @param bucket 目标bucket
|
|
|
* @param data 上传的数据
|
|
|
* @param remoteFilePath 上传后的文件路径
|
|
|
- * @throws Exception
|
|
|
+ * @
|
|
|
*/
|
|
|
- void uploadFile(String bucket, byte[] data, String remoteFilePath) throws Exception;
|
|
|
+ void uploadFile(String bucket, byte[] data, String remoteFilePath) ;
|
|
|
|
|
|
/**
|
|
|
* 上传文件至系统默认bucket
|
|
|
*
|
|
|
* @param data 上传的数据
|
|
|
* @param remoteFilePath 上传后的文件路径
|
|
|
- * @throws Exception
|
|
|
+ * @
|
|
|
*/
|
|
|
- void uploadFile(byte[] data, String remoteFilePath) throws Exception;
|
|
|
+ void uploadFile(byte[] data, String remoteFilePath) ;
|
|
|
|
|
|
/**
|
|
|
* 上传本地文件
|
|
@@ -34,18 +34,18 @@ public interface FYunFileServiceInterface {
|
|
|
* @param bucket 目标bucket
|
|
|
* @param filePath 本地路径
|
|
|
* @param remoteFilePath 上传后的文件路径
|
|
|
- * @throws Exception
|
|
|
+ * @
|
|
|
*/
|
|
|
- void uploadFile(String bucket, String filePath, String remoteFilePath) throws Exception;
|
|
|
+ void uploadFile(String bucket, String filePath, String remoteFilePath) ;
|
|
|
|
|
|
/**
|
|
|
* 上传本地文件至系统默认bucket
|
|
|
*
|
|
|
* @param filePath 本地路径
|
|
|
* @param remoteFilePath 上传后的文件路径
|
|
|
- * @throws Exception
|
|
|
+ * @
|
|
|
*/
|
|
|
- void uploadFile(String filePath, String remoteFilePath) throws Exception;
|
|
|
+ void uploadFile(String filePath, String remoteFilePath) ;
|
|
|
|
|
|
/**
|
|
|
* 上传本地文件
|
|
@@ -53,18 +53,18 @@ public interface FYunFileServiceInterface {
|
|
|
* @param bucket 目标bucket
|
|
|
* @param filePath 本地路径
|
|
|
* @param remoteFilePath 上传后的文件路径
|
|
|
- * @throws Exception
|
|
|
+ * @
|
|
|
*/
|
|
|
- void uploadFile(String bucket, String filePath, String remoteFilePath, Map<String, String> headers) throws Exception;
|
|
|
+ void uploadFile(String bucket, String filePath, String remoteFilePath, Map<String, String> headers) ;
|
|
|
|
|
|
/**
|
|
|
* 上传本地文件至系统默认bucket
|
|
|
*
|
|
|
* @param filePath 本地路径
|
|
|
* @param remoteFilePath 上传后的文件路径
|
|
|
- * @throws Exception
|
|
|
+ * @
|
|
|
*/
|
|
|
- void uploadFile(String filePath, String remoteFilePath, Map<String, String> headers) throws Exception;
|
|
|
+ void uploadFile(String filePath, String remoteFilePath, Map<String, String> headers) ;
|
|
|
|
|
|
/**
|
|
|
* 通过本地脚本上传
|
|
@@ -72,7 +72,7 @@ public interface FYunFileServiceInterface {
|
|
|
* @param filePath
|
|
|
* @param remoteFilePath
|
|
|
*/
|
|
|
- void uploadFileByCommand(String bucket, String filePath, String remoteFilePath) throws Exception;
|
|
|
+ void uploadFileByCommand(String bucket, String filePath, String remoteFilePath) ;
|
|
|
|
|
|
/**
|
|
|
* 通过本地脚本上传至系统默认bucket
|
|
@@ -80,7 +80,7 @@ public interface FYunFileServiceInterface {
|
|
|
* @param filePath
|
|
|
* @param remoteFilePath
|
|
|
*/
|
|
|
- void uploadFileByCommand(String filePath, String remoteFilePath) throws Exception;
|
|
|
+ void uploadFileByCommand(String filePath, String remoteFilePath) ;
|
|
|
|
|
|
/**
|
|
|
* 删除服务器文件
|
|
@@ -106,7 +106,7 @@ public interface FYunFileServiceInterface {
|
|
|
* @param remoteFolderPath
|
|
|
* @return
|
|
|
*/
|
|
|
- void deleteFolder(String bucket, String remoteFolderPath) throws Exception;
|
|
|
+ void deleteFolder(String bucket, String remoteFolderPath) ;
|
|
|
|
|
|
/**
|
|
|
* 删除系统默认bucket目录
|
|
@@ -114,7 +114,7 @@ public interface FYunFileServiceInterface {
|
|
|
* @param remoteFolderPath
|
|
|
* @return
|
|
|
*/
|
|
|
- void deleteFolder(String remoteFolderPath) throws Exception;
|
|
|
+ void deleteFolder(String remoteFolderPath) ;
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -122,17 +122,17 @@ public interface FYunFileServiceInterface {
|
|
|
*
|
|
|
* @param bucket
|
|
|
* @param filepaths :key 本地路径,value,服务器文件路径
|
|
|
- * @throws Exception
|
|
|
+ * @
|
|
|
*/
|
|
|
- void uploadMulFiles(String bucket, Map<String, String> filepaths) throws Exception;
|
|
|
+ void uploadMulFiles(String bucket, Map<String, String> filepaths) ;
|
|
|
|
|
|
/**
|
|
|
* 上传多个文件至系统默认bucket
|
|
|
*
|
|
|
* @param filepaths :key 本地路径,value,服务器文件路径
|
|
|
- * @throws Exception
|
|
|
+ * @
|
|
|
*/
|
|
|
- void uploadMulFiles(Map<String, String> filepaths) throws Exception;
|
|
|
+ void uploadMulFiles(Map<String, String> filepaths) ;
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -141,18 +141,18 @@ public interface FYunFileServiceInterface {
|
|
|
* @param bucket
|
|
|
* @param sourcePath
|
|
|
* @return
|
|
|
- * @throws Exception
|
|
|
+ * @
|
|
|
*/
|
|
|
- List<String> listRemoteFiles(String bucket, String sourcePath) throws Exception;
|
|
|
+ List<String> listRemoteFiles(String bucket, String sourcePath) ;
|
|
|
|
|
|
/**
|
|
|
* 获取默认bucket文件列表
|
|
|
*
|
|
|
* @param sourcePath
|
|
|
* @return
|
|
|
- * @throws Exception
|
|
|
+ * @
|
|
|
*/
|
|
|
- List<String> listRemoteFiles(String sourcePath) throws Exception;
|
|
|
+ List<String> listRemoteFiles(String sourcePath) ;
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -163,7 +163,7 @@ public interface FYunFileServiceInterface {
|
|
|
* @author dengsixing
|
|
|
* @date 2022/1/18
|
|
|
**/
|
|
|
- void copyFileInBucket(String bucket, String sourcePath, String targetPath) throws Exception;
|
|
|
+ void copyFileInBucket(String bucket, String sourcePath, String targetPath) ;
|
|
|
|
|
|
/**
|
|
|
* 在默认bucket 内拷贝文件
|
|
@@ -172,7 +172,7 @@ public interface FYunFileServiceInterface {
|
|
|
* @author dengsixing
|
|
|
* @date 2022/1/18
|
|
|
**/
|
|
|
- void copyFileInBucket(String sourcePath, String targetPath) throws Exception;
|
|
|
+ void copyFileInBucket(String sourcePath, String targetPath) ;
|
|
|
|
|
|
/**
|
|
|
* <p>
|
|
@@ -184,7 +184,7 @@ public interface FYunFileServiceInterface {
|
|
|
* @author dengsixing
|
|
|
* @date 2022/1/18
|
|
|
**/
|
|
|
- void copyFileBetweenBucket(String sourceBucketName, String sourcePath, String targetBucketName, String targetPath) throws Exception;
|
|
|
+ void copyFileBetweenBucket(String sourceBucketName, String sourcePath, String targetBucketName, String targetPath) ;
|
|
|
|
|
|
/**
|
|
|
* <p>
|
|
@@ -196,7 +196,7 @@ public interface FYunFileServiceInterface {
|
|
|
* @author dengsixing
|
|
|
* @date 2022/1/18
|
|
|
**/
|
|
|
- void copyFileBetweenBucket(String sourcePath, String targetBucketName, String targetPath) throws Exception;
|
|
|
+ void copyFileBetweenBucket(String sourcePath, String targetBucketName, String targetPath) ;
|
|
|
|
|
|
/**
|
|
|
* <p>
|
|
@@ -208,7 +208,7 @@ public interface FYunFileServiceInterface {
|
|
|
* @author dengsixing
|
|
|
* @date 2022/1/18
|
|
|
**/
|
|
|
- void copyFilesBetweenBucket(String sourceBucketName, String targetBucketName, Map<String, String> pathMap) throws Exception;
|
|
|
+ void copyFilesBetweenBucket(String sourceBucketName, String targetBucketName, Map<String, String> pathMap) ;
|
|
|
|
|
|
/**
|
|
|
* <p>
|
|
@@ -220,7 +220,7 @@ public interface FYunFileServiceInterface {
|
|
|
* @author dengsixing
|
|
|
* @date 2022/1/18
|
|
|
**/
|
|
|
- void copyFilesBetweenBucket(String targetBucketName, Map<String, String> pathMap) throws Exception;
|
|
|
+ void copyFilesBetweenBucket(String targetBucketName, Map<String, String> pathMap) ;
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -230,7 +230,7 @@ public interface FYunFileServiceInterface {
|
|
|
* @param remoteFilePath
|
|
|
* @return
|
|
|
*/
|
|
|
- String getFileContent(String bucketName, String remoteFilePath) throws Exception;
|
|
|
+ String getFileContent(String bucketName, String remoteFilePath) ;
|
|
|
|
|
|
/**
|
|
|
* 获取默认bucket内容
|
|
@@ -238,7 +238,7 @@ public interface FYunFileServiceInterface {
|
|
|
* @param remoteFilePath
|
|
|
* @return
|
|
|
*/
|
|
|
- String getFileContent(String remoteFilePath) throws Exception;
|
|
|
+ String getFileContent(String remoteFilePath) ;
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -247,7 +247,7 @@ public interface FYunFileServiceInterface {
|
|
|
* @param objectName
|
|
|
* @return
|
|
|
*/
|
|
|
- boolean fileExist(String bucket, String objectName) throws Exception;
|
|
|
+ boolean fileExist(String bucket, String objectName) ;
|
|
|
|
|
|
/**
|
|
|
* 判断默认bucket文件是否存在
|
|
@@ -255,7 +255,7 @@ public interface FYunFileServiceInterface {
|
|
|
* @param objectName
|
|
|
* @return
|
|
|
*/
|
|
|
- boolean fileExist(String objectName) throws Exception;
|
|
|
+ boolean fileExist(String objectName) ;
|
|
|
|
|
|
/**
|
|
|
* 从指定bucket下载文件
|
|
@@ -265,14 +265,14 @@ public interface FYunFileServiceInterface {
|
|
|
* @param localPath
|
|
|
* @return
|
|
|
*/
|
|
|
- public void downloadFile(String bucket, String remoteFilePath, String localPath) throws Exception;
|
|
|
+ public void downloadFile(String bucket, String remoteFilePath, String localPath) ;
|
|
|
|
|
|
/**
|
|
|
* 从系统默认bucket下载文件
|
|
|
*
|
|
|
* @param remoteFilePath
|
|
|
* @param localPath
|
|
|
- * @throws Exception
|
|
|
+ * @
|
|
|
*/
|
|
|
- public void downloadFile(String remoteFilePath, String localPath) throws Exception;
|
|
|
+ public void downloadFile(String remoteFilePath, String localPath) ;
|
|
|
}
|