public class AttachmentCacheManagerImpl extends java.lang.Object implements AttachmentCacheManagerProvider
限定符和类型 | 方法和说明 |
---|---|
Attachment |
addAttachment(java.lang.String type,
java.lang.String filename,
byte[] bytes)
添加附件到内存中
|
Attachment |
addAttachment(java.lang.String type,
java.lang.String filename,
byte[] bytes,
int width,
int height)
添加附件到内存中
|
Attachment |
addAttachment(java.lang.String type,
java.lang.String filename,
ValueGetter<byte[]> blobDelegate)
添加附件到内存中
|
Attachment |
addAttachment(java.lang.String type,
java.lang.String fileName,
ValueGetter<byte[]> bd,
int width,
int height)
添加附件到内存中
|
Attachment |
addAttachmentViaStream(java.lang.String type,
java.lang.String filename,
AttachmentFileBase attachmentFileBase,
int width,
int height) |
Attachment |
getAttachment(java.lang.String id)
根据钥匙获取附件
|
static AttachmentCacheManagerImpl |
getInstance() |
public static AttachmentCacheManagerImpl getInstance()
public Attachment addAttachment(java.lang.String type, java.lang.String filename, byte[] bytes)
addAttachment
在接口中 AttachmentCacheManagerProvider
type
- 附件类型filename
- 附件名称bytes
- 附件内容public Attachment addAttachment(java.lang.String type, java.lang.String filename, ValueGetter<byte[]> blobDelegate)
addAttachment
在接口中 AttachmentCacheManagerProvider
type
- 附件类型filename
- 附件名称blobDelegate
- 是一个Blob对象代理public Attachment addAttachment(java.lang.String type, java.lang.String filename, byte[] bytes, int width, int height)
addAttachment
在接口中 AttachmentCacheManagerProvider
type
- 附件类型filename
- 附件名称bytes
- 附件内容width
- 控件宽度height
- 控件高度public Attachment addAttachmentViaStream(java.lang.String type, java.lang.String filename, AttachmentFileBase attachmentFileBase, int width, int height)
public Attachment addAttachment(java.lang.String type, java.lang.String fileName, ValueGetter<byte[]> bd, int width, int height)
addAttachment
在接口中 AttachmentCacheManagerProvider
type
- 附件类型fileName
- 附件名称bd
- 附件内容width
- 控件宽度height
- 控件高度public Attachment getAttachment(java.lang.String id)
getAttachment
在接口中 AttachmentCacheManagerProvider
id
- 表示附件存放位置的钥匙的一个字符串