public class FileDownloadResourceWriter extends Object implements DownloadResourceWriter
Constructor and Description |
---|
FileDownloadResourceWriter(String resourcePath,
File file) |
Modifier and Type | Method and Description |
---|---|
String |
getResourcePath()
The relative URL of the resource, including the application context path.
|
OutputStream |
getStreamForWriting()
Opens and returns a new output stream for writing the resource to a file.
|
public FileDownloadResourceWriter(String resourcePath, File file)
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 topublic String getResourcePath()
DownloadResourceWriter
getResourcePath
in interface DownloadResourceWriter
public OutputStream getStreamForWriting()
Client is responsible for closing in a finally block.
getStreamForWriting
in interface DownloadResourceWriter
OutputStream
for writingCopyright © 2003–2017 Atlassian. All rights reserved.