public class ImgStorageUtilYPImpl extends Object implements ImgStorageUtil
| 限定符和类型 | 类和说明 |
|---|---|
static class |
ImgStorageUtilYPImpl.PARAMS |
| 构造器和说明 |
|---|
ImgStorageUtilYPImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getBucketName() |
Map<String,Object> |
getOptions(Map<String,String> options) |
String |
getUserName() |
String |
getUserPwd() |
Map<String,Object> |
getVodOptions(Map<String,String> options,
boolean transcoding) |
String |
imgCrop(String dir,
String yunFileName,
String picFile,
String cropParams)
图片裁剪
|
String |
imgGmkerl(String dir,
String yunFileName,
String picFile,
Map<String,String> params)
图片做缩略图
注意:若使用了缩略图功能,则会丢弃原图
|
String |
imgRotate(String dir,
String yunFileName,
String picFile,
String param)
图片旋转
|
String |
imgStorage(String url,
int timeOneHour)
获取私有文件的防盗链接
|
String |
imgStorage(String dir,
String yunFileName,
String fileUrl)
上传文件
|
void |
setBucketName(String bucketName) |
void |
setUserName(String userName) |
void |
setUserPwd(String userPwd) |
void |
UpYunInit() |
public String getBucketName()
public void setBucketName(String bucketName)
public String getUserName()
public void setUserName(String userName)
public String getUserPwd()
public void setUserPwd(String userPwd)
public void UpYunInit()
public String imgStorage(String dir, String yunFileName, String fileUrl) throws IOException
imgStorage 在接口中 ImgStorageUtilIOExceptionpublic String imgStorage(String url, int timeOneHour) throws IOException
ImgStorageUtilimgStorage 在接口中 ImgStorageUtilIOExceptionpublic String imgGmkerl(String dir, String yunFileName, String picFile, Map<String,String> params) throws IOException
注意:若使用了缩略图功能,则会丢弃原图
imgGmkerl 在接口中 ImgStorageUtilIOExceptionpublic String imgRotate(String dir, String yunFileName, String picFile, String param) throws IOException
imgRotate 在接口中 ImgStorageUtilIOExceptionpublic String imgCrop(String dir, String yunFileName, String picFile, String cropParams) throws IOException
imgCrop 在接口中 ImgStorageUtilIOExceptionpublic Map<String,Object> getOptions(Map<String,String> options) throws IOException
getOptions 在接口中 ImgStorageUtilIOExceptionpublic Map<String,Object> getVodOptions(Map<String,String> options, boolean transcoding) throws com.aliyuncs.exceptions.ClientException
getVodOptions 在接口中 ImgStorageUtilcom.aliyuncs.exceptions.ClientExceptionCopyright © 2022. All rights reserved.