Package com.atlassian.confluence.pages
Class AttachmentUtils
java.lang.Object
com.atlassian.confluence.pages.AttachmentUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic InputStream
getLatestAttachmentStream
(Attachment attachment) Deprecated.Since 5.5.
-
Constructor Details
-
AttachmentUtils
public AttachmentUtils()
-
-
Method Details
-
getLatestAttachmentStream
Deprecated.Since 5.5. UseAttachmentManager.getAttachmentData(Attachment)
Returns the attachment data as an InputStreamThis method is not specific to any implementation of the AttachmentManager.
- Parameters:
attachment
- the attachment the data should be retrieved for- Returns:
- the InputStream from the AttachmentManager
- Throws:
IllegalStateException
- if the AttachmentManager could not be retrieved from the application context
-