com.gisgraphy.helper
Class Untar

java.lang.Object
  extended by com.gisgraphy.helper.Untar

public class Untar
extends java.lang.Object

Utility class to untar files, files can be zipped in multi format (extension tar, tar.gzip,tar.gz, tar.bz2, tar.bzip2 are supported).

Author:
David Masclet

Constructor Summary
Untar(java.lang.String tarFileName, java.io.File dest)
           
 
Method Summary
 java.lang.String getCurrentFileNameIntoArchiveExtracted()
           
 void untar()
          process the untar operation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Untar

public Untar(java.lang.String tarFileName,
             java.io.File dest)
Parameters:
tarFileName - the path to the file we want to untar
dest - the path where the file should be untar
Method Detail

untar

public void untar()
           throws java.io.IOException
process the untar operation

Throws:
java.io.IOException

getCurrentFileNameIntoArchiveExtracted

public java.lang.String getCurrentFileNameIntoArchiveExtracted()


Copyright © 2010. All Rights Reserved.