Class AttachmentDownloadResourceReader
java.lang.Object
com.atlassian.confluence.importexport.resource.AttachmentDownloadResourceReader
- All Implemented Interfaces:
- DownloadResourceReader
- Direct Known Subclasses:
- PartialAttachmentDownloadResourceReader
- 
Constructor SummaryConstructorsConstructorDescriptionAttachmentDownloadResourceReader(Attachment attachment, org.springframework.core.io.InputStreamSource inputStreamSource) 
- 
Method SummaryModifier and TypeMethodDescriptionlonggetName()User-displayable name of the resource.The input stream for reading the resource.
- 
Constructor Details- 
AttachmentDownloadResourceReaderpublic AttachmentDownloadResourceReader(Attachment attachment, org.springframework.core.io.InputStreamSource inputStreamSource) 
 
- 
- 
Method Details- 
getNameDescription copied from interface:DownloadResourceReaderUser-displayable name of the resource. Used for resource name when downloading, for example.- Specified by:
- getNamein interface- DownloadResourceReader
- Returns:
- a user-displayable name of the resource
 
- 
getContentType- Specified by:
- getContentTypein interface- DownloadResourceReader
 
- 
getContentLengthpublic long getContentLength()- Specified by:
- getContentLengthin interface- DownloadResourceReader
 
- 
getLastModificationDate- Specified by:
- getLastModificationDatein interface- DownloadResourceReader
 
- 
getStreamForReadingDescription copied from interface:DownloadResourceReaderThe 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. - Specified by:
- getStreamForReadingin interface- DownloadResourceReader
- Returns:
- InputStreamfor reading
 
 
-