public class BackupDirectory extends java.io.File implements IPersistable
| Constructor and Description |
|---|
BackupDirectory(java.io.File file,
int nBackupp) |
BackupDirectory(java.lang.String pathname,
int nBackupp) |
| Modifier and Type | Method and Description |
|---|---|
java.io.File |
getNewFile(java.io.File localFile)
creates a new file in this and assures than no more than nBackup files remain
|
java.io.File |
getNewFile(java.lang.String fileName) |
boolean |
isCreateDirectory() |
boolean |
persist()
physically persist the whatever stuff
|
void |
setDirectory(boolean isDirectory) |
java.lang.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(java.lang.String pathname,
int nBackupp)
pathname - the DirectorynBackupp - the number of backups to retainjava.lang.IllegalArgumentException - if file exists and is not a directorypublic BackupDirectory(java.io.File file,
int nBackupp)
throws java.lang.IllegalArgumentException
file - the base filenBackupp - the number of backups to retainjava.lang.IllegalArgumentException - if file exists and is not a directorypublic java.io.File getNewFile(java.io.File localFile)
localFile - the local file to place in this directorypublic java.io.File getNewFile(java.lang.String fileName)
fileName - public java.lang.String toString()
toString in class java.io.FileFile.toString()public boolean persist()
IPersistablepersist in interface IPersistableIPersistable.persist()public boolean isCreateDirectory()
public void setDirectory(boolean isDirectory)