public class ArchiveDecompressor extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
extractArchive(File inputFile,
File targetDirectory)
Extracts a given compressed or archive
File to specified target directory. |
static void |
extractArchive(InputStream archiveInputStream,
File targetDirectory)
Extracts a given compressed or archive
InputStream to specified target directory. |
public static void extractArchive(File inputFile, File targetDirectory) throws IOException
File to specified target directory.inputFile - compressed or archive input file.targetDirectory - target directory to extract the archive to.IOException - in case a failure occurs while trying to extract the file.public static void extractArchive(InputStream archiveInputStream, File targetDirectory) throws IOException
InputStream to specified target directory.archiveInputStream - compressed or archive input stream.targetDirectory - target directory to extract the archive to.IOException - in case a failure occurs while trying to extract the stream.Copyright © 2024. All rights reserved.