public interface ExportFileNameGenerator
Modifier and Type | Method and Description |
---|---|
File |
createExportDirectory()
Create a unique directory within which an export operation can create any necessary files and final output.
|
File |
getExportFile(String... differentiators)
Generate a File that can be used to create an output.
|
String |
getExportFileName(String... differentiators)
Generate a unique file name encompassing the differentiator parameters supplied.
|
File createExportDirectory() throws IOException
IOException
- if there is a problem creating the output directory.String getExportFileName(String... differentiators)
differentiators
- 0 or more components that will be used in creation of the file name.File getExportFile(String... differentiators) throws IOException
Generate a File that can be used to create an output. All necessary parent directories will be created as necessary meaning the supplied File simply has to be opened for writing.
This method is a convenient combination of createExportDirectory()
and
getExportFileName(String...)
.
differentiators
- 0 or more components that will be used in creation of the file name.IOException
- if there is a problem creating the output directory.Copyright © 2003–2020 Atlassian. All rights reserved.