com.atlassian.jira.bean.export.FilenameGenerator |
Class Overview
Strategy pattern for abstracting filename generation such as in unique
filenames or timestamp-based ones.
Summary
Public Methods |
File
|
generate(String basepath)
Attempts to generate a File with a name using the implementor's chosen
strategy.
|
Public Methods
public
File
generate
(String basepath)
Attempts to generate a File with a name using the implementor's chosen
strategy. This contract only pertains to the generation of the File object,
not to the creation of the actual physical file on disk.
Parameters
basepath
| absolute or relative prefix path for the filename. |
Returns
- The full path to a prospective file.
Throws
IOException
| if a filename cannot be generated for the given basepath.
|