Class RollingBackupDirectory

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<java.io.File>, IPersistable

    public class RollingBackupDirectory
    extends BackupDirectory
    backup directory that creates countable file names with varying extensions
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class java.io.File

        pathSeparator, pathSeparatorChar, separator, separatorChar
    • Constructor Summary

      Constructors 
      Constructor Description
      RollingBackupDirectory​(java.io.File file, int nBackupp, java.lang.String base)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.io.File getNewFile()  
      java.io.File getNewFileWithExt​(java.lang.String ext)  
      java.lang.String toString()  
      • 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, toPath, toURI, toURL
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • RollingBackupDirectory

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

      • getNewFile

        public java.io.File getNewFile()
        Returns:
      • getNewFileWithExt

        public java.io.File getNewFileWithExt​(java.lang.String ext)
        Parameters:
        ext -
        Returns:
      • toString

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