|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jpop.io.FileUtils
Field Summary | |
static java.lang.String |
BACKUP_POSTFIX
the postfix to be appended to backed up files |
static int |
MAX_BACKUP_LEVEL
The maximmun number of backup files there should be at any time |
Constructor Summary | |
FileUtils()
|
Method Summary | |
static java.io.File |
makeFile(java.lang.String filename)
Makes and returns a file |
static void |
moveToBackup(java.lang.String filename,
int count)
Moves a file to a backup file, pushing any other backup files on the way if necessary |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String BACKUP_POSTFIX
public static final int MAX_BACKUP_LEVEL
Constructor Detail |
public FileUtils()
Method Detail |
public static void moveToBackup(java.lang.String filename, int count)
filename
- The name of the file to movecount
- The count of backups pushedpublic static java.io.File makeFile(java.lang.String filename) throws java.io.IOException
filename
- The name of the file to make
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |