com.atlassian.confluence.pages
Class AttachmentUtils

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

public class AttachmentUtils
extends Object


Constructor Summary
AttachmentUtils()
           
 
Method Summary
static String getConfluenceAttachmentDirectory()
          Deprecated. since 5.5. Use AtlassianBootstrapManager.getFilePathProperty(String) and ConfluenceBootstrapConstants.ATTACHMENTS_DIR_PROP
static InputStream getLatestAttachmentStream(Attachment attachment)
          Deprecated. Since 5.5. Use AttachmentManager.getAttachmentData(Attachment)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttachmentUtils

public AttachmentUtils()
Method Detail

getLatestAttachmentStream

@Deprecated
public static InputStream getLatestAttachmentStream(Attachment attachment)
Deprecated. Since 5.5. Use AttachmentManager.getAttachmentData(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

getConfluenceAttachmentDirectory

@Deprecated
public static String getConfluenceAttachmentDirectory()
Deprecated. since 5.5. Use AtlassianBootstrapManager.getFilePathProperty(String) and ConfluenceBootstrapConstants.ATTACHMENTS_DIR_PROP



Copyright © 2003–2015 Atlassian. All rights reserved.