commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <>
Subject [jira] [Updated] (IO-316) New API: BackupFileWriter
Date Thu, 07 Jun 2012 21:08:24 GMT


Sebb updated IO-316:

    Issue Type: New Feature  (was: Bug)
> New API: BackupFileWriter
> -------------------------
>                 Key: IO-316
>                 URL:
>             Project: Commons IO
>          Issue Type: New Feature
>          Components: Streams/Writers
>    Affects Versions: 2.1
>            Reporter: Aaron Digulla
>            Priority: Minor
> Add the new file based I/O class {{BackupFileWriter}} with the following properties:
> - Saves the file to a temporary name
> - Creates backup of existing file on {{close()}}
> - Renames temp file to desired name on {{close()}}
> The backup strategy (number of backups, backup file name) should be pluggable.
> There should also be a hook to compare the temporary and the existing file and do the
rename only when they are different. The default hook should always replace the file.
> It should also be possible to override the temporary file name (including the path, so
the temp file can be in the same directory or a different one or even on a different disk).

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message