|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteu.lindenbaum.maven.archiver.TarGzArchiver
public final class TarGzArchiver
An archiver that can create gzipped tar archives using the erlang
erl_tar module.
| Constructor Summary | |
|---|---|
TarGzArchiver(String peer,
String cookie,
File archive)
|
|
| Method Summary | |
|---|---|
void |
addFile(File file)
Add a file/directory to the archive. |
void |
addFile(File file,
String archiveName)
Add a file/directory to the archive. |
void |
createArchive()
Creates and writes the archive to archive. |
File |
getArchive()
Returns this archivers archive file no matter already created or not. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TarGzArchiver(String peer,
String cookie,
File archive)
| Method Detail |
|---|
public File getArchive()
public void addFile(File file)
throws IOException
file - to add to the archive
IOException - if the file does not exist
public void addFile(File file,
String archiveName)
throws IOException
file - to add to the archivearchiveName - name of the file in the archive
IOException - if the file does not exist
public void createArchive()
throws IOException
archive.
IOException - if there are no files to archive or erl_tar
ends with erros
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||