Package com.xpn.xwiki.doc
Interface DeletedAttachmentContent
-
public interface DeletedAttachmentContent
The 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 String
getContentAsString()
XWikiAttachment
getXWikiAttachment(XWikiAttachment attachment)
-
-
-
Method Detail
-
getContentAsString
String getContentAsString() throws IOException, XWikiException
- Returns:
- the serialized version of the attachment
- Throws:
IOException
- when failing to get theString
contentXWikiException
- when failing to get theString
content
-
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
-
-