Package org.xwiki.attachment
Interface AttachmentAccessWrapper
-
@Unstable public interface AttachmentAccessWrapper
Provides the metadata required to access an attachment without depending on a specific implementation. TODO: Should be moved to xwiki-platform-attachment-api as soon at its dependency to oldcore is removed.- Since:
- 14.10
- Version:
- $Id: ac4b58625dd67bcba4e3db286c20cb2eeab27855 $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getFileName()
InputStream
getInputStream()
long
getSize()
-
-
-
Method Detail
-
getSize
long getSize()
- Returns:
- the attachment size in bytes
-
getInputStream
InputStream getInputStream() throws IOException
- Returns:
- the attachment input steam
- Throws:
IOException
- in case of error when retrieving the input steam
-
getFileName
String getFileName()
- Returns:
- the attachment filename
-
-