public class FileUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static FileUtils |
getInstance(String accessKeyId,
String accessKeySecret) |
String |
upload(String filePath) |
String |
upload(String fileName,
InputStream stream) |
public static FileUtils getInstance(String accessKeyId, String accessKeySecret) throws com.aliyuncs.exceptions.ClientException
com.aliyuncs.exceptions.ClientExceptionpublic String upload(String filePath) throws com.aliyuncs.exceptions.ClientException, IOException
com.aliyuncs.exceptions.ClientExceptionIOExceptionpublic String upload(String fileName, InputStream stream) throws com.aliyuncs.exceptions.ClientException, IOException
com.aliyuncs.exceptions.ClientExceptionIOExceptionCopyright © 2022. All rights reserved.