org.apache.whirr.util
Class Tarball

java.lang.Object
  extended by org.apache.whirr.util.Tarball

public class Tarball
extends Object

Tarball utility.


Constructor Summary
Tarball()
           
 
Method Summary
static void createFromDirectory(String sourceDirectory, String targetName)
          Creates a tarball from the source directory and writes it into the target directory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tarball

public Tarball()
Method Detail

createFromDirectory

public static void createFromDirectory(String sourceDirectory,
                                       String targetName)
                                throws IOException
Creates a tarball from the source directory and writes it into the target directory.

Parameters:
sourceDirectory - directory whose files will be added to the tarball
targetName - directory where tarball will be written to
Throws:
IOException - when an exception occurs on creating the tarball


Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.