com.atlassian.confluence.importexport.resource
Interface DownloadResourceReader

All Known Implementing Classes:
AttachmentDownloadResourceReader, FileDownloadResourceReader, GenericDownloadResourceReader, ThumbnailDownloadResourceReader, WebImagesDownloadResourceReader

public interface DownloadResourceReader


Method Summary
 long getContentLength()
           
 java.lang.String getContentType()
           
 java.util.Date getLastModificationDate()
           
 java.lang.String getName()
          User-displayable name of the resource.
 java.io.InputStream getStreamForReading()
          The input stream for reading the resource.
 

Method Detail

getName

java.lang.String getName()
User-displayable name of the resource. Used for resource name when downloading, for example.

Returns:
a user-displayable name of the resource

getContentType

java.lang.String getContentType()

getContentLength

long getContentLength()

getLastModificationDate

java.util.Date getLastModificationDate()

getStreamForReading

java.io.InputStream getStreamForReading()
The input stream for reading the resource. A new input stream is returned for each call to this method. The client is responsible for closing the returned stream in a finally block.

Returns:
InputStream for reading


Copyright © 2003-2014 Atlassian. All Rights Reserved.