com.atlassian.confluence.pages
Class AttachmentUtils

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

public class AttachmentUtils
extends java.lang.Object


Constructor Summary
AttachmentUtils()
           
 
Method Summary
static java.lang.String getConfluenceAttachmentDirectory()
          Deprecated. since 5.5. Use AtlassianBootstrapManager.getFilePathProperty(String) and ConfluenceBootstrapConstants.ATTACHMENTS_DIR_PROP
static java.io.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 java.io.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:
java.lang.IllegalStateException - if the AttachmentManager could not be retrieved from the application context

getConfluenceAttachmentDirectory

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



Copyright © 2003-2014 Atlassian. All Rights Reserved.