public class Tarball extends Object
| Constructor and Description |
|---|
Tarball() |
| Modifier and Type | Method and Description |
|---|---|
static void |
createFromDirectory(String sourceDirectory,
String targetName)
Creates a tarball from the source directory and writes it into the target directory.
|
public static void createFromDirectory(String sourceDirectory, String targetName) throws IOException
sourceDirectory - directory whose files will be added to the tarballtargetName - directory where tarball will be written toIOException - when an exception occurs on creating the tarballCopyright © 2010–2016 Cloudera. All rights reserved.