|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.javatest.util.BackupUtil
public class BackupUtil
Constructor Summary | |
---|---|
BackupUtil()
Creates a new instance of BackupUtil |
Method Summary | |
---|---|
static void |
backupAllSubdirs(java.io.File dir,
int maxBackups)
Backups all found "layers" of subdirs. |
static void |
backupContents(java.io.File dir,
int maxBackups)
backups all files in the directory. |
static void |
backupDir(java.io.File file,
int maxBackups)
This method created to backup dirs. |
static int |
backupFile(java.io.File file,
int maxBackups)
Performs backup of file. |
static boolean |
checkForInteger(java.lang.String s)
|
static boolean |
deleteDir(java.io.File dir)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BackupUtil()
Method Detail |
---|
public static int backupFile(java.io.File file, int maxBackups)
file
- File to backupmaxBackups
- Maximum number of allowed backups
public static void backupDir(java.io.File file, int maxBackups)
public static void backupAllSubdirs(java.io.File dir, int maxBackups)
dir
- root dir where layers situatedmaxBackups
- max allowed time to backuppublic static void backupContents(java.io.File dir, int maxBackups)
public static boolean checkForInteger(java.lang.String s)
s
- Checks, if this String represents integer number
public static boolean deleteDir(java.io.File dir)
dir
- File to delete. If it is not dir, deletes this File. Otherwise deletes dir
recursively
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |