| Constructor and Description |
|---|
AliyunOssStore() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkFile(String fileStoreUrl) |
boolean |
deleteFile(String fileStoreUrl) |
String |
getAccessKeyId() |
String |
getBucketName() |
String |
getEndPoint() |
File |
getFile(String fileStoreUrl) |
String |
getFileAccessUrl(String fileStoreUrl) |
long |
getFileSize(String fileStoreUrl) |
String |
getSecretAccessKey() |
InputStream |
loadFileStream(String fileStoreUrl) |
String |
matchFileStoreUrl(FileBaseInfo fileInfo,
long fileSize) |
String |
saveFile(FileBaseInfo fileInfo,
long fileSize,
InputStream is) |
String |
saveFile(String sourFilePath,
FileBaseInfo fileInfo,
long fileSize) |
void |
setAccessKeyId(String accessKeyId) |
void |
setBucketName(String bucketName) |
void |
setEndPoint(String endPoint) |
void |
setSecretAccessKey(String secretAccessKey) |
public String getBucketName()
public void setBucketName(String bucketName)
public String getEndPoint()
public void setEndPoint(String endPoint)
public String getAccessKeyId()
public void setAccessKeyId(String accessKeyId)
public String getSecretAccessKey()
public void setSecretAccessKey(String secretAccessKey)
public String saveFile(FileBaseInfo fileInfo, long fileSize, InputStream is) throws IOException
saveFile in interface FileStoreIOExceptionpublic String saveFile(String sourFilePath, FileBaseInfo fileInfo, long fileSize) throws IOException
saveFile in interface FileStoreIOExceptionpublic boolean checkFile(String fileStoreUrl)
public String matchFileStoreUrl(FileBaseInfo fileInfo, long fileSize)
matchFileStoreUrl in interface FileStorepublic long getFileSize(String fileStoreUrl) throws IOException
getFileSize in interface FileStoreIOExceptionpublic String getFileAccessUrl(String fileStoreUrl)
getFileAccessUrl in interface FileStorepublic InputStream loadFileStream(String fileStoreUrl) throws IOException
loadFileStream in interface FileStoreIOExceptionpublic File getFile(String fileStoreUrl) throws IOException
getFile in interface FileStoreIOExceptionpublic boolean deleteFile(String fileStoreUrl) throws IOException
deleteFile in interface FileStoreIOExceptionCopyright © 2024 Centit Information Technical, co. Inc.. All rights reserved.