Class WebImagesDownloadResourceReader
java.lang.Object
com.atlassian.confluence.importexport.resource.WebImagesDownloadResourceReader
- All Implemented Interfaces:
DownloadResourceReader
-
Constructor Summary
ConstructorDescriptionWebImagesDownloadResourceReader
(String resourcePath, org.springframework.core.io.InputStreamSource inputStreamSource) -
Method Summary
Modifier and TypeMethodDescriptionlong
getName()
User-displayable name of the resource.The input stream for reading the resource.
-
Constructor Details
-
WebImagesDownloadResourceReader
public WebImagesDownloadResourceReader(String resourcePath, org.springframework.core.io.InputStreamSource inputStreamSource)
-
-
Method Details
-
getName
Description copied from interface:DownloadResourceReader
User-displayable name of the resource. Used for resource name when downloading, for example.- Specified by:
getName
in interfaceDownloadResourceReader
- Returns:
- a user-displayable name of the resource
-
getContentType
- Specified by:
getContentType
in interfaceDownloadResourceReader
-
getContentLength
public long getContentLength()- Specified by:
getContentLength
in interfaceDownloadResourceReader
-
getLastModificationDate
- Specified by:
getLastModificationDate
in interfaceDownloadResourceReader
-
getStreamForReading
Description copied from interface:DownloadResourceReader
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.
- Specified by:
getStreamForReading
in interfaceDownloadResourceReader
- Returns:
InputStream
for reading
-