|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.org.retep.util.io.tar.TarUtils
public class TarUtils
A collection of utility methods for handling tar archives
| Method Summary | |
|---|---|
static void |
createTar(java.io.File tarFile,
java.io.File baseDirectory,
java.io.FileFilter filter,
boolean recurse)
Create a tar file based on a list of files. |
static void |
createTar(java.io.File tarFile,
java.io.File baseDirectory,
java.util.List<java.io.File> files)
Create a tar file based on a list of files. |
static void |
createTar(java.io.File tarFile,
java.util.List<java.io.File> files)
Create a tar file based on a list of files. |
static void |
createTar(Log log,
java.io.File tarFile,
java.io.File baseDirectory,
java.io.FileFilter filter,
boolean recurse)
Create a tar file based on a list of files. |
static void |
createTar(Log log,
java.io.File tarFile,
java.io.File baseDirectory,
java.util.List<java.io.File> files)
Create a tar file based on a list of files. |
static void |
createTar(Log log,
java.io.File tarFile,
java.util.List<java.io.File> files)
Create a tar file based on a list of files. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void createTar(java.io.File tarFile,
java.util.List<java.io.File> files)
throws java.io.IOException
If the destination filename ends with .tar.gz or .tgz then the file will be compressed with GZip.
If the destination filename ends with ".tar.bz2" then the file will be compressed with BZip2.
tarFile - Destination Filefiles - List of files to include in the Tar archive
java.io.IOException - on error
public static void createTar(java.io.File tarFile,
java.io.File baseDirectory,
java.io.FileFilter filter,
boolean recurse)
throws java.io.IOException
If the destination filename ends with .tar.gz or .tgz then the file will be compressed with GZip.
If the destination filename ends with ".tar.bz2" then the file will be compressed with BZip2.
tarFile - Destination FilebaseDirectory - File denoting the source base directory.filter - FileFilter to choose what files will be includedrecurse - true if to recurse down directories
java.io.IOException - on error
public static void createTar(java.io.File tarFile,
java.io.File baseDirectory,
java.util.List<java.io.File> files)
throws java.io.IOException
If the destination filename ends with .tar.gz or .tgz then the file will be compressed with GZip.
If the destination filename ends with ".tar.bz2" then the file will be compressed with BZip2.
tarFile - Destination FilebaseDirectory - File denoting the source base directory.files - List of files to include in the Tar archive
java.io.IOException - on error
public static void createTar(Log log,
java.io.File tarFile,
java.util.List<java.io.File> files)
throws java.io.IOException
If the destination filename ends with .tar.gz or .tgz then the file will be compressed with GZip.
If the destination filename ends with ".tar.bz2" then the file will be compressed with BZip2.
log - Log to log progress to, may be nulltarFile - Destination Filefiles - List of files to include in the Tar archive
java.io.IOException - on error
public static void createTar(Log log,
java.io.File tarFile,
java.io.File baseDirectory,
java.io.FileFilter filter,
boolean recurse)
throws java.io.IOException
If the destination filename ends with .tar.gz or .tgz then the file will be compressed with GZip.
If the destination filename ends with ".tar.bz2" then the file will be compressed with BZip2.
log - Log to log progress to, may be nulltarFile - Destination FilebaseDirectory - File denoting the source base directory.filter - FileFilter to choose what files will be includedrecurse - true if to recurse down directories
java.io.IOException - on error
public static void createTar(Log log,
java.io.File tarFile,
java.io.File baseDirectory,
java.util.List<java.io.File> files)
throws java.io.IOException
If the destination filename ends with .tar.gz or .tgz then the file will be compressed with GZip.
If the destination filename ends with ".tar.bz2" then the file will be compressed with BZip2.
log - Log to log progress to, may be nulltarFile - Destination FilebaseDirectory - File denoting the source base directory.files - List of files to include in the Tar archive
java.io.IOException - on error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||