com.atlassian.confluence.importexport.resource
Interface DownloadResourceReader
- All Known Implementing Classes:
- AttachmentDownloadResourceReader, FileDownloadResourceReader, ThumbnailDownloadResourceReader, WebImagesDownloadResourceReader
public interface DownloadResourceReader
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-2008 Atlassian Pty Ltd. All Rights Reserved.