com.atlassian.confluence.importexport.resource
Class FileDownloadResourceReader
java.lang.Object
  
com.atlassian.confluence.importexport.resource.FileDownloadResourceReader
- All Implemented Interfaces: 
 - DownloadResourceReader
 
public class FileDownloadResourceReader
- extends java.lang.Object
- implements DownloadResourceReader
  
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
FileDownloadResourceReader
public FileDownloadResourceReader(java.io.File file,
                                  boolean deleteFileOnClose)
getName
public java.lang.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 java.lang.String getContentType()
- Specified by:
 getContentType in interface DownloadResourceReader
 
 
getContentLength
public long getContentLength()
- Specified by:
 getContentLength in interface DownloadResourceReader
 
 
getLastModificationDate
public java.util.Date getLastModificationDate()
- Specified by:
 getLastModificationDate in interface DownloadResourceReader
 
 
getStreamForReading
public java.io.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-2008 Atlassian Pty Ltd. All Rights Reserved.