public class RollingBackupFile
extends java.io.File
| Constructor and Description |
|---|
RollingBackupFile(java.io.File file,
int nBackupp) |
RollingBackupFile(java.lang.String pathname,
int nBackupp) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearAll()
remove all files, including main file
|
java.io.File |
getNewFile() |
java.io.File |
getNewFile(java.lang.String extension)
get a new file for a given extension
|
java.io.File |
getOldFile(int i) |
void |
setWantExtension(boolean wantExtension) |
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, toString, toURI, toURLpublic RollingBackupFile(java.lang.String pathname,
int nBackupp)
pathname - the base filenamenBackupp - the number of backups to retainpublic RollingBackupFile(java.io.File file,
int nBackupp)
file - the base filenBackupp - the number of backups to retainpublic void setWantExtension(boolean wantExtension)
wantExtension - the wantExtension to setpublic java.io.File getNewFile()
public java.io.File getNewFile(java.lang.String extension)
extension - public java.io.File getOldFile(int i)
i - the index of the file to readpublic void clearAll()