Package com.xpn.xwiki.doc
Interface DeletedAttachmentContent
-
public interface DeletedAttachmentContentThe content of the stored deleted attachment.- Since:
- 9.10RC1
- Version:
- $Id: f12f25923fe3232af8311003018c7f73f5d42636 $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetContentAsString()XWikiAttachmentgetXWikiAttachment(XWikiAttachment attachment)
-
-
-
Method Detail
-
getContentAsString
String getContentAsString() throws IOException, XWikiException
- Returns:
- the serialized version of the attachment
- Throws:
IOException- when failing to get theStringcontentXWikiException- when failing to get theStringcontent
-
getXWikiAttachment
XWikiAttachment getXWikiAttachment(XWikiAttachment attachment) throws IOException, XWikiException
- Parameters:
attachment- the attachment to write to or null to create a new one- Returns:
- restored attachment
- Throws:
IOException- when failing to read the contentXWikiException- when failing to read the content
-
-