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