public class FastDFSRepository extends Object implements Repository
因fastdfs-client未发布到maven中央库,本包中集成了其代码,请使用者遵守原代码的协议 Created by davidoff shen on 2016-12-14.
| Modifier and Type | Field and Description |
|---|---|
static org.coodex.util.Profile |
ATTACHMENT_PROFILE |
| Constructor and Description |
|---|
FastDFSRepository() |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(Set<String> attachmentIds) |
void |
delete(String attachmentId) |
AttachmentEntityInfo |
get(String attachmentId) |
AttachmentEntityInfo |
put(InputStream content,
AttachmentInfo metaInfo) |
protected void |
update(AttachmentEntityInfo entityInfo) |
void |
updateInfo(String attachmentId,
AttachmentInfo metaInfo) |
void |
writeTo(String attachmentId,
OutputStream outputStream,
int speedLimit) |
public AttachmentEntityInfo put(InputStream content, AttachmentInfo metaInfo)
put in interface Repositoryprotected void update(AttachmentEntityInfo entityInfo)
public void updateInfo(String attachmentId, AttachmentInfo metaInfo)
updateInfo in interface Repositorypublic void delete(String attachmentId)
delete in interface Repositorypublic void delete(Set<String> attachmentIds)
delete in interface Repositorypublic AttachmentEntityInfo get(String attachmentId)
get in interface Repositorypublic void writeTo(String attachmentId, OutputStream outputStream, int speedLimit)
writeTo in interface RepositoryCopyright © 2018. All rights reserved.