public class

ThumbnailDownloadResourceReader

extends Object
implements DownloadResourceReader
java.lang.Object
   ↳ com.atlassian.confluence.importexport.resource.ThumbnailDownloadResourceReader

Summary

Public Constructors
ThumbnailDownloadResourceReader(Attachment attachment, File thumbnailFile, InputStreamSource inputStreamSource)
Public Methods
long getContentLength()
String getContentType()
Date getLastModificationDate()
String getName()
User-displayable name of the resource.
InputStream getStreamForReading()
The input stream for reading the resource.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.confluence.importexport.resource.DownloadResourceReader

Public Constructors

public ThumbnailDownloadResourceReader (Attachment attachment, File thumbnailFile, InputStreamSource inputStreamSource)

Public Methods

public long getContentLength ()

public String getContentType ()

public Date getLastModificationDate ()

public String getName ()

User-displayable name of the resource. Used for resource name when downloading, for example.

Returns
  • a user-displayable name of the resource

public 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