public class TarUtils extends Object
Constructor and Description |
---|
TarUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
compress(String tarballName,
File... files)
Compresses a list of files to one destination.
|
static void |
decompress(String in,
File out)
Decompresses a tarball to one destination.
|
public static void compress(String tarballName, File... files) throws IOException
tarballName
- destination path of the .tar.gz filefiles
- a list of files to add to the tarballIOException
public static void decompress(String in, File out) throws IOException
in
- the input file pathout
- destination to decompress files toIOException
Copyright © 2023. All Rights Reserved.