eu.lindenbaum.maven.archiver
Class TarGzUnarchiver
java.lang.Object
  
eu.lindenbaum.maven.archiver.TarGzUnarchiver
public final class TarGzUnarchiver
- extends Object
 
An unarchiver that can extract gzipped tar archives using the erlang
 erl_tar module. This archiver will overwrite older files by default.
- Author:
 
  - Tobias Schlager 
 
 
| 
Method Summary | 
 void | 
extract(File archive)
 
          Extracts a given archive into the configured directory. | 
 File | 
getDestination()
 
          Returns this unarchivers destination directory. | 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
TarGzUnarchiver
public TarGzUnarchiver(String peer,
                       String cookie)
TarGzUnarchiver
public TarGzUnarchiver(String peer,
                       String cookie,
                       File destination)
getDestination
public File getDestination()
- Returns this unarchivers destination directory. No matter if existing or
 not.
- Returns:
 - this unarchivers destination directory
 
 
 
extract
public void extract(File archive)
             throws IOException
- Extracts a given archive into the configured directory.
- Parameters:
 archive - to extract
- Throws:
 IOException - in case the archive does not exist or the destination
           directory cannot be created or is not a directory or
           erl_tar ends with errors.
 
 
Copyright © 2011 Lindenbaum GmbH. All Rights Reserved.