class ZipUtils {

	public static File getFileFrom(File zip, String targetPathInZipfile, File destFolder) {
		File target = null;
		try {
			Zip64File zip64File = new Zip64File(zip);
			FileEntry targetEntry = getFileEntry(zip64File, targetPathInZipfile);
			
			if(targetEntry!=null) {
				target = readEntry(zip64File, targetEntry, destFolder);
			}
			else {
				log.severe("[getFileFrom] Sorry, the file/folder you ask for could not be found in this zip: " + targetPathInZipfile);
			}
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
		return target;
	}

}