Class FileDownloadResourceWriter
java.lang.Object
com.atlassian.confluence.importexport.resource.FileDownloadResourceWriter
- All Implemented Interfaces:
- DownloadResourceWriter
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionThe relative URL of the resource, including the application context path.Opens and returns a new output stream for writing the resource to a file.
- 
Constructor Details- 
FileDownloadResourceWriter- Parameters:
- resourcePath- the relative URL of resource including the application's context path. For example, "/confluence/download/temp/chart1274.png".
- file- the file the writer will open the output stream to
 
 
- 
- 
Method Details- 
getResourcePathDescription copied from interface:DownloadResourceWriterThe relative URL of the resource, including the application context path.- Specified by:
- getResourcePathin interface- DownloadResourceWriter
- Returns:
- the relative URL of the resource
 
- 
getStreamForWritingOpens and returns a new output stream for writing the resource to a file.Client is responsible for closing in a finally block. - Specified by:
- getStreamForWritingin interface- DownloadResourceWriter
- Returns:
- OutputStreamfor writing
 
 
-