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