Class FileDownloadResourceWriter
java.lang.Object
com.atlassian.confluence.importexport.resource.FileDownloadResourceWriter
- All Implemented Interfaces:
DownloadResourceWriter
-
Constructor Summary
Constructors -
Method Summary
Modifier 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
-
getResourcePath
Description copied from interface:DownloadResourceWriter
The relative URL of the resource, including the application context path.- Specified by:
getResourcePath
in interfaceDownloadResourceWriter
- Returns:
- the relative URL of the resource
-
getStreamForWriting
Opens and returns a new output stream for writing the resource to a file.Client is responsible for closing in a finally block.
- Specified by:
getStreamForWriting
in interfaceDownloadResourceWriter
- Returns:
OutputStream
for writing
-