destinationFile.mkdirs();
}
if (targzFile.exists()) {
//Create an UnArchiver object from .tar.gz file
TarGZipUnArchiver targzUnArchiver = new TarGZipUnArchiver();
//Set the compressed source file
targzUnArchiver.setSourceFile(targzFile);
//extract the .tar.gz file on destination Path
targzUnArchiver.extract("", destinationFile);
}
else
{
throw new FileNotFoundException("File "+file + " missing.");
}