commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aaron Digulla (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IO-316) New API: BackupFileWriter
Date Mon, 26 Mar 2012 11:58:27 GMT
New API: BackupFileWriter
-------------------------

                 Key: IO-316
                 URL: https://issues.apache.org/jira/browse/IO-316
             Project: Commons IO
          Issue Type: Bug
          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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message