public class ArchiveExtractor extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
extract(Path path,
File targetDirectory)
Extract zip file in the system to a target Directory.
|
static void |
extract(URL sourceURL,
File targetDirectory)
Extract zip or tar.gz specified by maven url to a target Directory.
|
public static void extract(URL sourceURL, File targetDirectory) throws IOException
sourceURL - url of the archive to extracttargetDirectory - where to extract toIOException - on I/O errorpublic static void extract(Path path, File targetDirectory) throws IOException
path - path of the archive to be extracttargetDirectory - where to extract toIOException - on I/O errorCopyright © 2025 WSO2. All rights reserved.