public class ExtractFilesFromArchive extends Object
Constructor and Description |
---|
ExtractFilesFromArchive() |
Modifier and Type | Method and Description |
---|---|
static boolean |
extractFileFromArchive(File downloadedZip,
String extractedToFilePath,
boolean overwriteFilesThatExist,
BinaryFileNames possibleFilenames)
Extract binary from a downloaded archive file
|
protected static boolean |
untarFile(File downloadedGZip,
String extractedToFilePath,
boolean overwriteFilesThatExist,
BinaryFileNames possibleFilenames)
Unzip a downloaded tar.gz file (this will implicitly overwrite any existing files)
|
protected static boolean |
unzipFile(File downloadedZip,
String extractedToFilePath,
boolean overwriteFilesThatExist,
BinaryFileNames possibleFilenames)
Unzip a downloaded zip file (this will implicitly overwrite any existing files)
|
public static boolean extractFileFromArchive(File downloadedZip, String extractedToFilePath, boolean overwriteFilesThatExist, BinaryFileNames possibleFilenames) throws IOException, IllegalArgumentException
downloadedZip
- The downloaded zip fileextractedToFilePath
- Path to extracted fileoverwriteFilesThatExist
- Overwrite any existing filespossibleFilenames
- Names of the files we want to extractIOException
IllegalArgumentException
protected static boolean unzipFile(File downloadedZip, String extractedToFilePath, boolean overwriteFilesThatExist, BinaryFileNames possibleFilenames) throws IOException
downloadedZip
- The downloaded zip fileextractedToFilePath
- Path to extracted fileoverwriteFilesThatExist
- Overwrite any existing filespossibleFilenames
- Names of the files we want to extractIOException
protected static boolean untarFile(File downloadedGZip, String extractedToFilePath, boolean overwriteFilesThatExist, BinaryFileNames possibleFilenames) throws IOException
downloadedGZip
- The downloaded tar.gz fileextractedToFilePath
- Path to extracted fileoverwriteFilesThatExist
- Overwrite any existing filespossibleFilenames
- Names of the files we want to extractIOException
Copyright © 2014. All Rights Reserved.