public class TarGzTools extends Object
Constructor and Description |
---|
TarGzTools() |
Modifier and Type | Method and Description |
---|---|
static void |
createTarGzFile(String targetFileName,
Collection<File> sources,
String tempDir,
String rootDir,
Collection<String> maskedTypes,
Pattern mask,
CryptoScheme cryptoScheme)
Creates a tar.gz archive with contents of the given directory, applying encryption or masking (as appropriate)
to the content of its files
|
public static void createTarGzFile(String targetFileName, Collection<File> sources, String tempDir, String rootDir, Collection<String> maskedTypes, Pattern mask, CryptoScheme cryptoScheme) throws IOException
targetFileName
- pathname of the target archive filesources
- source file collection (pathnames correspond to the directory arrangement)tempDir
- directory for creating any temporary (intermediate) filesrootDir
- root directory for included files (for relativizing pathnames added to archive)maskedTypes
- List of files to be excluded from the archive, null if nonemask
- regular expression for masking content, null if nonecryptoScheme
- cryptographic scheme for encryption, null if noneIOException
- in case of a failure to create the tar.gz archiveCopyright © 2016–2019 AdroitLogic. All rights reserved.