Class AttachmentUtils

java.lang.Object
com.atlassian.confluence.pages.AttachmentUtils

public class AttachmentUtils extends Object
  • Constructor Details

    • AttachmentUtils

      public AttachmentUtils()
  • Method Details

    • getLatestAttachmentStream

      @Deprecated public static InputStream getLatestAttachmentStream(Attachment attachment)
      Returns the attachment data as an InputStream

      This 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