public class ArchiveUtils extends Object
*.zip and tar.gz archives to a given destination directory.| Modifier and Type | Method and Description |
|---|---|
static void |
extract(File archiveFile,
File destinationDirectory)
Extracts an archive to a destination directory
|
public static void extract(File archiveFile, File destinationDirectory) throws IOException
archiveFile - the archive to extract, either *.zip or tar.gzdestinationDirectory - the destination directoryFileNotFoundException - if given archive doesn't existIOException - if an I/O error occurredNullPointerException - if any of the parameters is null.Copyright © 2023. All rights reserved.