public class SibaManager extends Object
Constructor and Description |
---|
SibaManager() |
Modifier and Type | Method and Description |
---|---|
static File |
backup(File fileToSave,
File target)
perform the backup
|
static boolean |
check(File choosenFile)
To check the file
|
static void |
directoryToSave(File directory,
org.apache.commons.compress.archivers.tar.TarArchiveOutputStream outputStream,
int pathLength) |
static File |
fileMD5(File directoryToSave,
String destination)
Generate the file with MD5
|
static String |
md5(File input)
Calculate the MD5 itself
|
public static File backup(File fileToSave, File target) throws org.apache.commons.compress.archivers.ArchiveException, IOException, SibaNullException
fileToSave
- target
- org.apache.commons.compress.archivers.ArchiveException
IOException
SibaNullException
public static boolean check(File choosenFile) throws IOException, NoSuchAlgorithmException
choosenFile
- IOException
NoSuchAlgorithmException
public static void directoryToSave(File directory, org.apache.commons.compress.archivers.tar.TarArchiveOutputStream outputStream, int pathLength) throws IOException
IOException
public static File fileMD5(File directoryToSave, String destination) throws IOException
directoryToSave
- destination
- IOException
public static String md5(File input) throws IOException
input
- IOException