org.cip4.jdflib.util.file
Class RollingBackupDirectory

java.lang.Object
  extended by java.io.File
      extended by org.cip4.jdflib.util.BackupDirectory
          extended by org.cip4.jdflib.util.file.RollingBackupDirectory
All Implemented Interfaces:
Serializable, Comparable<File>, IPersistable

public class RollingBackupDirectory
extends BackupDirectory

backup directory that creates countable file names with varying extensions

Author:
rainer prosi
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.io.File
pathSeparator, pathSeparatorChar, separator, separatorChar
 
Constructor Summary
RollingBackupDirectory(File file, int nBackupp, String base)
           
 
Method Summary
 File getNewFile()
           
 File getNewFileWithExt(String ext)
           
 String toString()
           
 
Methods inherited from class org.cip4.jdflib.util.BackupDirectory
getNewFile, getNewFile, persist
 
Methods inherited from class java.io.File
canExecute, canRead, canWrite, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, equals, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getFreeSpace, getName, getParent, getParentFile, getPath, getTotalSpace, getUsableSpace, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setExecutable, setExecutable, setLastModified, setReadable, setReadable, setReadOnly, setWritable, setWritable, toURI, toURL
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RollingBackupDirectory

public RollingBackupDirectory(File file,
                              int nBackupp,
                              String base)
                       throws IllegalArgumentException
Parameters:
file -
nBackupp -
base - the file base name including its extension
Throws:
IllegalArgumentException
Method Detail

getNewFile

public File getNewFile()
Returns:

getNewFileWithExt

public File getNewFileWithExt(String ext)
Parameters:
ext -
Returns:

toString

public String toString()
Overrides:
toString in class BackupDirectory
See Also:
File.toString()


Copyright © 2013. All Rights Reserved.