public class ImgStorageTencentServiceImpl extends Object implements ImgStorageUtil
| 构造器和说明 |
|---|
ImgStorageTencentServiceImpl() |
ImgStorageTencentServiceImpl(String APP_ID,
String SECRET_ID,
String SECRET_KEY,
String bucketName,
String region) |
public ImgStorageTencentServiceImpl(String APP_ID, String SECRET_ID, String SECRET_KEY, String bucketName, String region)
public ImgStorageTencentServiceImpl()
public void initClient()
public String imgStorage(String dir, String yunFileName, String picFile) throws IOException
imgStorage 在接口中 ImgStorageUtildir - 只传moduleyunFileName - 传文件名称picFile - 本地路径IOExceptionpublic String imgStorage(String dir, String yunFileName, String picFile, Boolean internal) 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 params) throws IOException
imgRotate 在接口中 ImgStorageUtilIOExceptionpublic String imgCrop(String dir, String yunFileName, String picFile, String params) 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.ClientExceptionpublic String getAPP_ID()
public void setAPP_ID(String APP_ID)
public String getSECRET_ID()
public void setSECRET_ID(String SECRET_ID)
public String getSECRET_KEY()
public void setSECRET_KEY(String SECRET_KEY)
public String getBucketName()
public void setBucketName(String bucketName)
public String getRegion()
public void setRegion(String region)
public com.qcloud.cos.COSClient getCosClient()
public void setCosClient(com.qcloud.cos.COSClient cosClient)
public static void main(String[] args)
Copyright © 2024. All rights reserved.