public class DefaultBackupGenerator extends Object implements BackupGenerator
Performs a backup of a file, into another file at the same path (directory), with the file extension changed to .bak.
Constructor and Description |
---|
DefaultBackupGenerator() |
public void backup(File source) throws BackupException
BackupGenerator
Performs a backup of source
.
backup
in interface BackupGenerator
source
- the source fileBackupException