Class GenericDownloadResourceReader
- java.lang.Object
-
- com.atlassian.confluence.importexport.resource.GenericDownloadResourceReader
-
- All Implemented Interfaces:
DownloadResourceReader
public class GenericDownloadResourceReader extends Object implements DownloadResourceReader
-
-
Constructor Summary
Constructors Constructor Description GenericDownloadResourceReader(String name, org.springframework.core.io.InputStreamSource inputStreamSource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetContentLength()StringgetContentType()DategetLastModificationDate()StringgetName()User-displayable name of the resource.InputStreamgetStreamForReading()The input stream for reading the resource.
-
-
-
Constructor Detail
-
GenericDownloadResourceReader
public GenericDownloadResourceReader(String name, org.springframework.core.io.InputStreamSource inputStreamSource)
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:DownloadResourceReaderUser-displayable name of the resource. Used for resource name when downloading, for example.- Specified by:
getNamein interfaceDownloadResourceReader- Returns:
- a user-displayable name of the resource
-
getContentType
public String getContentType()
- Specified by:
getContentTypein interfaceDownloadResourceReader
-
getContentLength
public long getContentLength()
- Specified by:
getContentLengthin interfaceDownloadResourceReader
-
getLastModificationDate
public Date getLastModificationDate()
- Specified by:
getLastModificationDatein interfaceDownloadResourceReader
-
getStreamForReading
public InputStream getStreamForReading()
Description 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 interfaceDownloadResourceReader- Returns:
InputStreamfor reading
-
-