Package org.savantbuild.io.tar
Class TarTools
java.lang.Object
org.savantbuild.io.tar.TarTools
Tarball tools.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TarTools
public TarTools()
-
-
Method Details
-
untar
Untars a TAR file. This also handles tar.gz files by checking the file extension. If the file extension ends in .gz it will read the tarball through a GZIPInputStream.- Parameters:
file- The TAR file.to- The directory to untar to.useGroup- Determines if the group name in the archive is used.useOwner- Determines if the owner name in the archive is used.- Throws:
IOException- If the untar fails.
-