com.atlassian.confluence.importexport.resource
Interface DownloadResourceReader

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

public interface DownloadResourceReader


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

Method Detail

getName

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

String getContentType()

getContentLength

long getContentLength()

getLastModificationDate

Date getLastModificationDate()

getStreamForReading

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-2011 Atlassian. All Rights Reserved.