public class AttachmentSource
extends java.lang.Object
构造器和说明 |
---|
AttachmentSource() |
限定符和类型 | 方法和说明 |
---|---|
static Attachment |
getAttachment(java.lang.String id)
根据钥匙获取附件
|
static Attachment |
getDelegateAttachment(java.lang.String id)
获取附件对象
|
static void |
putAttachment(java.lang.String key,
Attachment attachment)
将附件存放到仓库
|
static void |
putDelegateAttachment(java.lang.String key,
Attachment attachment)
添加附件对象
|
static int |
removeAllAttach()
清空附件资源文件
|
static void |
removeAttachment(java.lang.String id)
清除仓库中指定位置的附件
|
static void |
removeDelegateAttachment(java.lang.String id)
删除附件对象
|
public static void putAttachment(java.lang.String key, Attachment attachment)
key
- 附件对应的仓库的钥匙attachment
- 附件public static int removeAllAttach()
public static Attachment getAttachment(java.lang.String id)
id
- 表示附件存放位置的钥匙的一个字符串public static void removeAttachment(java.lang.String id)
id
- 表示附件在仓库中对应位置的钥匙的字符串public static void putDelegateAttachment(java.lang.String key, Attachment attachment)
attachment
- 附件key
- 索引public static Attachment getDelegateAttachment(java.lang.String id)
id
- 索引public static void removeDelegateAttachment(java.lang.String id)
id
- 索引