com.atlassian.confluence.importexport.resource
Class WebImagesDownloadResourceReader

java.lang.Object
  extended by com.atlassian.confluence.importexport.resource.WebImagesDownloadResourceReader
All Implemented Interfaces:
DownloadResourceReader

public class WebImagesDownloadResourceReader
extends Object
implements DownloadResourceReader


Constructor Summary
WebImagesDownloadResourceReader(String resourcePath, org.springframework.core.io.InputStreamSource inputStreamSource)
           
 
Method Summary
 long getContentLength()
           
 String getContentType()
           
 Date getLastModificationDate()
           
 String getName()
          User-displayable name of the resource.
 InputStream getStreamForReading()
          The input stream for reading the resource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebImagesDownloadResourceReader

public WebImagesDownloadResourceReader(String resourcePath,
                                       org.springframework.core.io.InputStreamSource inputStreamSource)
Method Detail

getName

public String getName()
Description copied from interface: DownloadResourceReader
User-displayable name of the resource. Used for resource name when downloading, for example.

Specified by:
getName in interface DownloadResourceReader
Returns:
a user-displayable name of the resource

getContentType

public String getContentType()
Specified by:
getContentType in interface DownloadResourceReader

getContentLength

public long getContentLength()
Specified by:
getContentLength in interface DownloadResourceReader

getLastModificationDate

public Date getLastModificationDate()
Specified by:
getLastModificationDate in interface DownloadResourceReader

getStreamForReading

public InputStream 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 interface DownloadResourceReader
Returns:
InputStream for reading


Copyright © 2003-2012 Atlassian. All Rights Reserved.