Interface DownloadResourceReader
-
- All Known Subinterfaces:
PartialDownloadResourceReader
- All Known Implementing Classes:
AttachmentDownloadResourceReader
,FileDownloadResourceReader
,GenericDownloadResourceReader
,PartialAttachmentDownloadResourceReader
,ThumbnailDownloadResourceReader
,WebImagesDownloadResourceReader
public interface DownloadResourceReader
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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
-
-