|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.confluence.importexport.impl.ConfluenceTempDirExportFileNameGenerator
public class ConfluenceTempDirExportFileNameGenerator
A file name generator that will create directories and filenames appropriate for the configured Confluence temporary directory.
Constructor Summary | |
---|---|
ConfluenceTempDirExportFileNameGenerator(BootstrapManager bootstrapManager,
String exportDirPrefix,
String extension,
String dateFormat,
String timeFormat)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfluenceTempDirExportFileNameGenerator(BootstrapManager bootstrapManager, String exportDirPrefix, String extension, String dateFormat, String timeFormat)
Method Detail |
---|
public File createExportDirectory() throws IOException
ExportFileNameGenerator
createExportDirectory
in interface ExportFileNameGenerator
IOException
- if there is a problem creating the output directory.public String getExportFileName(String... differentiators)
ExportFileNameGenerator
getExportFileName
in interface ExportFileNameGenerator
differentiators
- 0 or more components that will be used in creation of the file name.
public File getExportFile(String... differentiators) throws IOException
ExportFileNameGenerator
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 ExportFileNameGenerator.createExportDirectory()
and
ExportFileNameGenerator.getExportFileName(String...)
.
getExportFile
in interface ExportFileNameGenerator
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |