public class BackupDirectory extends File implements IPersistable
pathSeparator, pathSeparatorChar, separator, separatorChar| Constructor and Description |
|---|
BackupDirectory(File file,
int nBackupp) |
BackupDirectory(String pathname,
int nBackupp) |
| Modifier and Type | Method and Description |
|---|---|
File |
getNewFile(File localFile)
creates a new file in this and assures than no more than nBackup files remain
|
File |
getNewFile(String fileName) |
boolean |
persist()
physically persist the whatever stuff
|
String |
toString() |
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, toURLpublic BackupDirectory(String pathname, int nBackupp)
pathname - the DirectorynBackupp - the number of backups to retainIllegalArgumentException - if file exists and is not a directorypublic BackupDirectory(File file, int nBackupp) throws IllegalArgumentException
file - the base filenBackupp - the number of backups to retainIllegalArgumentException - if file exists and is not a directorypublic File getNewFile(File localFile)
localFile - the local file to place in this directorypublic String toString()
toString in class FileFile.toString()public boolean persist()
IPersistablepersist in interface IPersistableIPersistable.persist()Copyright © 2013. All Rights Reserved.