public class CloudFileServiceKodoImp extends Object implements org.noear.solon.cloud.service.CloudFileService
| 限定符和类型 | 字段和说明 |
|---|---|
protected String |
accessKey |
protected com.qiniu.util.Auth |
auth |
protected String |
bucketDef |
protected String |
endpoint |
protected String |
secretKey |
protected com.qiniu.storage.UploadManager |
uploadManager |
| 构造器和说明 |
|---|
CloudFileServiceKodoImp() |
| 限定符和类型 | 方法和说明 |
|---|---|
static CloudFileServiceKodoImp |
getInstance() |
InputStream |
getStream(String bucket,
String key) |
org.noear.solon.core.handle.Result |
putStream(String bucket,
String key,
InputStream stream,
String streamMime) |
protected final String bucketDef
protected final String accessKey
protected final String secretKey
protected final String endpoint
protected final com.qiniu.util.Auth auth
protected final com.qiniu.storage.UploadManager uploadManager
public static CloudFileServiceKodoImp getInstance()
public InputStream getStream(String bucket, String key) throws org.noear.solon.cloud.exception.CloudFileException
getStream 在接口中 org.noear.solon.cloud.service.CloudFileServiceorg.noear.solon.cloud.exception.CloudFileExceptionpublic org.noear.solon.core.handle.Result putStream(String bucket, String key, InputStream stream, String streamMime) throws org.noear.solon.cloud.exception.CloudFileException
putStream 在接口中 org.noear.solon.cloud.service.CloudFileServiceorg.noear.solon.cloud.exception.CloudFileExceptionCopyright © 2021. All rights reserved.