public class CompressArchiveUtil
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.io.File |
archiveTARFiles(java.io.File base,
java.lang.Iterable<java.io.File> files,
java.lang.String archiveNameWithOutExtension) |
static void |
tar(java.nio.file.Path inputPath,
java.nio.file.Path outputPath,
boolean gZipped,
boolean childrenOnly)
Recursively tar file
|
public static void tar(java.nio.file.Path inputPath,
java.nio.file.Path outputPath,
boolean gZipped,
boolean childrenOnly)
throws java.io.IOException
inputPath - file path can be directoryoutputPath - where to put the archived filechildrenOnly - if inputPath is directory and if childrenOnly is true, the archive will contain all of its children, else the archive
contains unique entry which is the inputPath itselfgZipped - compress with gzip algorithmjava.io.IOExceptionpublic static java.io.File archiveTARFiles(java.io.File base,
java.lang.Iterable<java.io.File> files,
java.lang.String archiveNameWithOutExtension)
throws java.io.IOException
java.io.IOExceptionCopyright © 2020. All Rights Reserved.